window.onerror catches JSON.parse error in Promise fulfillment

This commit is contained in:
janekptacijarabaci
2017-05-06 00:29:57 +02:00
committed by roytam1
parent 500bbf02e9
commit 671b416855
22 changed files with 168 additions and 189 deletions
+1
View File
@@ -1138,6 +1138,7 @@ nsScriptLoader::EvaluateScript(nsScriptLoadRequest* aRequest,
// New script entry point required, due to the "Create a script" sub-step of
// http://www.whatwg.org/specs/web-apps/current-work/#execute-the-script-block
AutoEntryScript entryScript(globalObject, true, context->GetNativeContext());
entryScript.TakeOwnershipOfErrorReporting();
JS::Rooted<JSObject*> global(entryScript.cx(),
globalObject->GetGlobalJSObject());