mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-28 04:39:07 -10:00
Bug 1425077 - Make ModuleScript::SetErrorToRethrow call HoldJSObjects in case there is no module record r=baku
This commit is contained in:
1 parent
8194cf9cc6
commit
76af191f97
1 file changed
+4
@@ -102,6 +102,10 @@ ModuleScript::SetErrorToRethrow(const JS::Value& aError)
|
||||
MOZ_ASSERT(!aError.isUndefined());
|
||||
MOZ_ASSERT(!HasErrorToRethrow());
|
||||
|
||||
// This is only called after SetModuleRecord() or SetParseError() so we don't
|
||||
// need to call HoldJSObjects() here.
|
||||
MOZ_ASSERT(mModuleRecord || HasParseError());
|
||||
|
||||
mErrorToRethrow = aError;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user