v8 allows us to enter an Isolate::scope multiple times in the same thread, so I widened it to our ScopeGuard as well.
Showing the changes to interface/src/scripting/PlatformInfoScriptingInterface.cpp (1 of 14 files). Show all
Unified · Split
| @@ -30,8 +30,9 @@ STATIC_SCRIPT_TYPES_INITIALIZER((+[](ScriptManager* manager){ · 29 unmodified lines | |||
| 30 | 30 | ||
| 31 | STATIC_SCRIPT_INITIALIZER(+[](ScriptManager* manager){ | 31 | STATIC_SCRIPT_INITIALIZER(+[](ScriptManager* manager){ |
| 32 | auto scriptEngine = manager->engine().get(); | 32 | auto scriptEngine = manager->engine().get(); |
| 33 | auto scopeGuard = scriptEngine->getScopeGuard(); | ||
| 33 | 34 | ||
| 34 | scriptEngine->registerEnum("PlatformInfo.PlatformTier",QMetaEnum::fromType<PlatformInfoScriptingInterface::PlatformTier>()); | 35 | scriptEngine->registerEnum(scopeGuard.get(), "PlatformInfo.PlatformTier",QMetaEnum::fromType<PlatformInfoScriptingInterface::PlatformTier>()); |
| 35 | }); | 36 | }); |
| 36 | 37 | ||
| 37 | PlatformInfoScriptingInterface* PlatformInfoScriptingInterface::getInstance() { | 38 | PlatformInfoScriptingInterface* PlatformInfoScriptingInterface::getInstance() { |