summaryrefslogtreecommitdiffstats
path: root/js/src/frontend/BytecodeEmitter.cpp
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-07-03 14:05:40 +0000
committerMoonchild <moonchild@palemoon.org>2020-07-10 18:29:43 +0000
commit57523a0debf898dc9583bfbc6c12f3e024f40b23 (patch)
tree84f8bed7a9ba1bd4462a272b7e4d4f5d93e66f71 /js/src/frontend/BytecodeEmitter.cpp
parent3f25d0c8e4d9296f0d45c85c251eab71f076937b (diff)
downloadUXP-57523a0debf898dc9583bfbc6c12f3e024f40b23.tar
UXP-57523a0debf898dc9583bfbc6c12f3e024f40b23.tar.gz
UXP-57523a0debf898dc9583bfbc6c12f3e024f40b23.tar.lz
UXP-57523a0debf898dc9583bfbc6c12f3e024f40b23.tar.xz
UXP-57523a0debf898dc9583bfbc6c12f3e024f40b23.zip
Issue #618 - Update code comments for ModuleInstantiate
Diffstat (limited to 'js/src/frontend/BytecodeEmitter.cpp')
-rw-r--r--js/src/frontend/BytecodeEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/frontend/BytecodeEmitter.cpp b/js/src/frontend/BytecodeEmitter.cpp
index 18cc7d954..654336a64 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))