History

V8 fixes, including making debug console work

ksuprynowicz committed 3 years ago

Commit 0d454eb1 parent 97137c76 files · +77 −46Browse files

Showing the changes to libraries/script-engine/src/ScriptManager.cpp (1 of 6 files). Show all

Unified · Split

libraries/script-engine/src/ScriptManager.cpp+4−2
@@ -1968,7 +1968,9 @@ void ScriptManager::entityScriptContentAvailable(const EntityItemID& entityID, c · 1967 unmodified lines
19681968 }
19691969
19701970 // SANITY/PERFORMANCE CHECK USING SANDBOX
1971− const int SANDBOX_TIMEOUT = 0.25 * MSECS_PER_SECOND;
1971+ // V8TODO: can be skipped for now but needs to be implemented before release
1972+
1973+ /*const int SANDBOX_TIMEOUT = 0.25 * MSECS_PER_SECOND;
19721974 ScriptEnginePointer sandbox = newScriptEngine();
19731975 sandbox->setProcessEventsInterval(SANDBOX_TIMEOUT);
19741976 ScriptValue testConstructor, exception;
@@ -2104,7 +2106,7 @@ void ScriptManager::entityScriptContentAvailable(const EntityItemID& entityID, c · 129 unmodified lines
21042106 setError("Could not find constructor (" + testConstructorType + ")", EntityScriptStatus::ERROR_RUNNING_SCRIPT);
21052107 emit unhandledException(err);
21062108 return; // done processing script
2107− }
2109+ }*/
21082110
21092111 // (this feeds into refreshFileScript)
21102112 int64_t lastModified = 0;