forked from rosebudai/OpenRCT2-Web
Set qjs stack limit to 7MB (#26489)
* Set qjs stack limit to 7MB * Update distribution/changelog.txt Co-authored-by: Michał Janiszewski <janisozaur@users.noreply.github.com> --------- Co-authored-by: Michał Janiszewski <janisozaur@users.noreply.github.com>
This commit is contained in:
1 parent
169e7345f7
commit
e4ba212574
4 files changed
+15
-15
No files matched your search
@@ -490,8 +490,7 @@ void ScriptEngine::Initialise()
|
||||
#endif
|
||||
}
|
||||
|
||||
// Disable maximum stack size limit for the JS engine.
|
||||
JS_SetMaxStackSize(_runtime, 0);
|
||||
JS_SetMaxStackSize(_runtime, kJsStackSize);
|
||||
|
||||
_replContext = JS_NewContext(_runtime);
|
||||
if (!_replContext)
|
||||
|
||||
Reference in new issue
Block a user