mirror of
https://github.com/roytam1/basilisk55.git
synced 2026-05-27 09:50:06 +00:00
ported from UXP: Issue #1691 - Part 9: Make import() work when the active script is in another document. M1342012 Associate event handler with active script when they are compiled. (be916ef7)
This commit is contained in:
@@ -73,7 +73,7 @@ void HostFinalizeTopLevelScript(JSFreeOp* aFop, const JS::Value& aPrivate) {
|
||||
#ifdef DEBUG
|
||||
if (script->IsModuleScript()) {
|
||||
JSObject* module = script->AsModuleScript()->mModuleRecord.unbarrieredGet();
|
||||
MOZ_ASSERT(JS::GetModulePrivate(module) == aPrivate);
|
||||
MOZ_ASSERT_IF(module, JS::GetModulePrivate(module) == aPrivate);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user