mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-21 22:57:31 +09:00
Issue #618 - Update code comments for ModuleInstantiate
This commit is contained in:
parent
c7d195e633
commit
7b30bfee4c
2 changed files with 2 additions and 2 deletions
|
|
@ -8261,7 +8261,7 @@ BytecodeEmitter::emitFunction(ParseNode* pn, bool needsProto)
|
||||||
if (topLevelFunction) {
|
if (topLevelFunction) {
|
||||||
if (sc->isModuleContext()) {
|
if (sc->isModuleContext()) {
|
||||||
// For modules, we record the function and instantiate the binding
|
// For modules, we record the function and instantiate the binding
|
||||||
// during ModuleDeclarationInstantiation(), before the script is run.
|
// during ModuleInstantiate(), before the script is run.
|
||||||
|
|
||||||
RootedModuleObject module(cx, sc->asModuleContext()->module());
|
RootedModuleObject module(cx, sc->asModuleContext()->module());
|
||||||
if (!module->noteFunctionDeclaration(cx, name, fun))
|
if (!module->noteFunctionDeclaration(cx, name, fun))
|
||||||
|
|
|
||||||
|
|
@ -5038,7 +5038,7 @@ Parser<FullParseHandler>::namedImportsOrNamespaceImport(TokenKind tt, Node impor
|
||||||
// Namespace imports are are not indirect bindings but lexical
|
// Namespace imports are are not indirect bindings but lexical
|
||||||
// definitions that hold a module namespace object. They are treated
|
// definitions that hold a module namespace object. They are treated
|
||||||
// as const variables which are initialized during the
|
// as const variables which are initialized during the
|
||||||
// ModuleDeclarationInstantiation step.
|
// ModuleInstantiate step.
|
||||||
RootedPropertyName bindingName(context, importedBinding());
|
RootedPropertyName bindingName(context, importedBinding());
|
||||||
if (!bindingName)
|
if (!bindingName)
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue