diff options
Diffstat (limited to 'dom/script/ModuleScript.cpp')
-rw-r--r-- | dom/script/ModuleScript.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dom/script/ModuleScript.cpp b/dom/script/ModuleScript.cpp index b2a72e6287..9f7fe9ab92 100644 --- a/dom/script/ModuleScript.cpp +++ b/dom/script/ModuleScript.cpp @@ -58,9 +58,9 @@ ModuleScript::UnlinkModuleRecord() { // Remove module's back reference to this object request if present. if (mModuleRecord) { - MOZ_ASSERT(JS::GetModulePrivate(mModuleRecord).toPrivate() == + MOZ_ASSERT(JS::GetModuleHostDefinedField(mModuleRecord).toPrivate() == this); - JS::SetModulePrivate(mModuleRecord, JS::UndefinedValue()); + JS::SetModuleHostDefinedField(mModuleRecord, JS::UndefinedValue()); mModuleRecord = nullptr; } } @@ -83,7 +83,7 @@ ModuleScript::SetModuleRecord(JS::Handle<JSObject*> aModuleRecord) // Make module's host defined field point to this module script object. // This is cleared in the UnlinkModuleRecord(). - JS::SetModulePrivate(mModuleRecord, JS::PrivateValue(this)); + JS::SetModuleHostDefinedField(mModuleRecord, JS::PrivateValue(this)); HoldJSObjects(this); } |