Bug 1622281 - Part 3: Update a function name in a comment. r=mgaudet
authorAndré Bargull <andre.bargull@gmail.com>
Fri, 13 Mar 2020 16:52:31 +0000
changeset 518674 e22a21645cbf9e3937521261e495af747583f2e4
parent 518673 0e31c93e485920f17378b57c79a51cdd85e59048
child 518675 8c15464d5d636c8cf192c523f09f18cdd17c9df9
push id110078
push userccoroiu@mozilla.com
push dateFri, 13 Mar 2020 17:06:46 +0000
treeherderautoland@e22a21645cbf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmgaudet
bugs1622281
milestone76.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1622281 - Part 3: Update a function name in a comment. r=mgaudet Depends on D66775 Differential Revision: https://phabricator.services.mozilla.com/D66776
js/src/frontend/ParseContext.cpp
--- a/js/src/frontend/ParseContext.cpp
+++ b/js/src/frontend/ParseContext.cpp
@@ -266,17 +266,17 @@ bool ParseContext::init() {
   if (isFunctionBox()) {
     if (tree) {
       if (!tree->init(cx, this->functionBox())) {
         return false;
       }
     }
     // Named lambdas always need a binding for their own name. If this
     // binding is closed over when we finish parsing the function in
-    // finishExtraFunctionScopes, the function box needs to be marked as
+    // finishFunctionScopes, the function box needs to be marked as
     // needing a dynamic DeclEnv object.
     if (functionBox()->isNamedLambda()) {
       if (!namedLambdaScope_->init(this)) {
         return false;
       }
       AddDeclaredNamePtr p = namedLambdaScope_->lookupDeclaredNameForAdd(
           functionBox()->explicitName());
       MOZ_ASSERT(!p);