Showing the changes to libraries/script-engine/src/ScriptManager.cpp (1 of 6 files). Show all
Unified · Split
| @@ -1968,7 +1968,9 @@ void ScriptManager::entityScriptContentAvailable(const EntityItemID& entityID, c · 1967 unmodified lines | |||
| 1968 | } | 1968 | } |
| 1969 | 1969 | ||
| 1970 | // SANITY/PERFORMANCE CHECK USING SANDBOX | 1970 | // 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 script | 2108 | 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; |