Bug 1254847 part 3. Make AutoEntryScript always take ownership of error reporting. r=bholley

This commit is contained in:
Boris Zbarsky
2016-03-09 19:02:03 -05:00
parent 2fd4be7bc7
commit 63091385d1
25 changed files with 23 additions and 64 deletions

View File

@@ -1637,7 +1637,6 @@ CycleCollectedJSRuntime::EnvironmentPreparer::invoke(JS::HandleObject scope,
JSContext* cx =
mainThread ? nullptr : nsContentUtils::GetDefaultJSContextForThread();
AutoEntryScript aes(global, "JS-engine-initiated execution", mainThread, cx);
aes.TakeOwnershipOfErrorReporting();
MOZ_ASSERT(!JS_IsExceptionPending(aes.cx()));