mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-28 04:39:07 -10:00
Backed out 2 changesets (bug 1482153, bug 1469004) for assertion failures at ModuleScript.cpp:59. CLOSED TREE
Backed out changeset 8289b70dc0db (bug 1469004) Backed out changeset 4129380f8318 (bug 1482153)
This commit is contained in:
1 parent
211c622c9d
commit
2e5fc1b670
12 files changed
+46
-120
No files matched your search
@@ -56,8 +56,9 @@ ModuleScript::UnlinkScript()
|
||||
{
|
||||
// Remove module's back reference to this object request if present.
|
||||
if (mScript) {
|
||||
MOZ_ASSERT(JS::GetTopLevelScriptPrivate(mScript) == this);
|
||||
JS::SetTopLevelScriptPrivate(mScript, nullptr);
|
||||
MOZ_ASSERT(JS::GetModuleHostDefinedField(mScript).toPrivate() ==
|
||||
this);
|
||||
JS::SetModuleHostDefinedField(mScript, JS::UndefinedValue());
|
||||
mScript = nullptr;
|
||||
}
|
||||
}
|
||||
@@ -80,7 +81,7 @@ ModuleScript::SetScript(JS::Handle<JSScript*> aScript)
|
||||
|
||||
// Make module's host defined field point to this module script object.
|
||||
// This is cleared in the UnlinkScript().
|
||||
JS::SetTopLevelScriptPrivate(mScript, this);
|
||||
JS::SetModuleHostDefinedField(mScript, JS::PrivateValue(this));
|
||||
HoldJSObjects(this);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user