From 58fe6d3754ffb1623a8ab3d808bc0623b50487e6 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Wed, 9 Mar 2016 23:17:10 -0500 Subject: [PATCH] Fix the asset for bug 1112920 to not touch uninitialized memory. Totally my fault, since I moved it above the mCx assignment, and now we have a CLOSED TREE. --- dom/base/ScriptSettings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/base/ScriptSettings.cpp b/dom/base/ScriptSettings.cpp index 723fdc0e39fb..1ea351a5fe9d 100644 --- a/dom/base/ScriptSettings.cpp +++ b/dom/base/ScriptSettings.cpp @@ -334,7 +334,7 @@ AutoJSAPI::InitInternal(JSObject* aGlobal, JSContext* aCx, bool aIsMainThread) { MOZ_ASSERT(aCx); MOZ_ASSERT(aIsMainThread == NS_IsMainThread()); - MOZ_ASSERT(!JS_IsExceptionPending(mCx)); + MOZ_ASSERT(!JS_IsExceptionPending(aCx)); mCx = aCx; mIsMainThread = aIsMainThread;