mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-10 01:40:50 +09:00
Issue #2234 - Part 2: Ensure that the created async function wrapper is valid
This excludes the GC-related changes (cell pointer asserts) since we don't have them. This bug should be revisited if we'd ever plan on porting those asserts over. Partially based on https://bugzilla.mozilla.org/show_bug.cgi?id=1402649
This commit is contained in:
parent
ab1c0a384d
commit
e52da4707d
1 changed files with 3 additions and 0 deletions
|
|
@ -973,6 +973,9 @@ ModuleObject::instantiateFunctionDeclarations(JSContext* cx, HandleModuleObject
|
|||
}
|
||||
}
|
||||
|
||||
if (!obj)
|
||||
return false;
|
||||
|
||||
value = ObjectValue(*obj);
|
||||
if (!SetProperty(cx, env, funDecl.name->asPropertyName(), value))
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue