History

Fix test build

Address generated entity classes and fix an API change in the scripting engine

Dale Glass committed 6 months ago

Commit 7f848141 parent d57ee294 files · +10 −2Browse files

Showing the changes to tests/script-engine/src/ScriptEngineTests.cpp (1 of 4 files). Show all

Unified · Split

tests/script-engine/src/ScriptEngineTests.cpp+2−1
@@ -242,7 +242,8 @@ void ScriptEngineTests::testRaiseExceptionAndCatch() { · 241 unmodified lines
242 });242 });
243 243
244 244
245 sm->engine()->registerGlobalObject("testClass", new TestClass(sm->engine()));245 auto scopeGuard = sm->engine()->getScopeGuard();
246 sm->engine()->registerGlobalObject(scopeGuard.get(), "testClass", new TestClass(sm->engine()));
246 247
247 sm->run();248 sm->run();
248 auto ex = sm->getUncaughtException();249 auto ex = sm->getUncaughtException();