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
1968 }1968 }
1969 1969
1970 // SANITY/PERFORMANCE CHECK USING SANDBOX1970 // 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;
1972 ScriptEnginePointer sandbox = newScriptEngine();1974 ScriptEnginePointer sandbox = newScriptEngine();
1973 sandbox->setProcessEventsInterval(SANDBOX_TIMEOUT);1975 sandbox->setProcessEventsInterval(SANDBOX_TIMEOUT);
1974 ScriptValue testConstructor, exception;1976 ScriptValue testConstructor, exception;
@@ -2104,7 +2106,7 @@ void ScriptManager::entityScriptContentAvailable(const EntityItemID& entityID, c · 129 unmodified lines
2104 setError("Could not find constructor (" + testConstructorType + ")", EntityScriptStatus::ERROR_RUNNING_SCRIPT);2106 setError("Could not find constructor (" + testConstructorType + ")", EntityScriptStatus::ERROR_RUNNING_SCRIPT);
2105 emit unhandledException(err);2107 emit unhandledException(err);
2106 return; // done processing script2108 return; // done processing script
2107 }2109 }*/
2108 2110
2109 // (this feeds into refreshFileScript)2111 // (this feeds into refreshFileScript)
2110 int64_t lastModified = 0;2112 int64_t lastModified = 0;