Merge pull request #588 from pandamicro/v1.4

Use incremental gc by default
This commit is contained in:
pandamicro
2017-04-12 14:36:41 +08:00
committed by GitHub
2 changed files with 3 additions and 1 deletions
@@ -631,7 +631,7 @@ void ScriptingCore::createGlobalContext() {
_rt = JS_NewRuntime(32L * 1024L * 1024L);
JS_SetGCParameter(_rt, JSGCParamKey::JSGC_MAX_BYTES, 0xffffffff);
JS_SetGCParameter(_rt, JSGCParamKey::JSGC_MODE, JSGC_MODE_COMPARTMENT);
JS_SetGCParameter(_rt, JSGCParamKey::JSGC_MODE, JSGC_MODE_INCREMENTAL);
JS_SetTrustedPrincipals(_rt, &shellTrustedPrincipals);
JS_SetSecurityCallbacks(_rt, &securityCallbacks);
@@ -856,6 +856,8 @@ JS_BINDED_FUNC_IMPL(MinXmlHttpRequest, send)
return false;
}
}
else if (args.get(0).isNullOrUndefined())
{}
else
{
return false;