diff options
author | Moonchild <moonchild@palemoon.org> | 2020-07-03 14:05:40 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-07-03 14:05:40 +0000 |
commit | 9ca74147225eed305e28c7887f9b2251aeeb0f36 (patch) | |
tree | 6909ac9dd27ffaaf73f26a4a691df4f53fcb8957 /js/src | |
parent | 61a471ef17645c211d228b4dd085a933fba6e6ba (diff) | |
download | uxp-9ca74147225eed305e28c7887f9b2251aeeb0f36.tar.gz |
Issue #618 - Update code comments for ModuleInstantiate
Diffstat (limited to 'js/src')
-rw-r--r-- | js/src/frontend/BytecodeEmitter.cpp | 2 | ||||
-rw-r--r-- | js/src/frontend/Parser.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/js/src/frontend/BytecodeEmitter.cpp b/js/src/frontend/BytecodeEmitter.cpp index 18cc7d954e..654336a643 100644 --- a/js/src/frontend/BytecodeEmitter.cpp +++ b/js/src/frontend/BytecodeEmitter.cpp @@ -8261,7 +8261,7 @@ BytecodeEmitter::emitFunction(ParseNode* pn, bool needsProto) if (topLevelFunction) { if (sc->isModuleContext()) { // 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()); if (!module->noteFunctionDeclaration(cx, name, fun)) diff --git a/js/src/frontend/Parser.cpp b/js/src/frontend/Parser.cpp index 810d589be9..59783a759f 100644 --- a/js/src/frontend/Parser.cpp +++ b/js/src/frontend/Parser.cpp @@ -5038,7 +5038,7 @@ Parser<FullParseHandler>::namedImportsOrNamespaceImport(TokenKind tt, Node impor // Namespace imports are are not indirect bindings but lexical // definitions that hold a module namespace object. They are treated // as const variables which are initialized during the - // ModuleDeclarationInstantiation step. + // ModuleInstantiate step. RootedPropertyName bindingName(context, importedBinding()); if (!bindingName) return false; |