diff --git a/js/src/frontend/Parser.cpp b/js/src/frontend/Parser.cpp index c26cc82890e9..f2601f243ae4 100644 --- a/js/src/frontend/Parser.cpp +++ b/js/src/frontend/Parser.cpp @@ -2361,9 +2361,8 @@ PerHandlerParser::newDotGeneratorName() return newInternalDotName(context->names().dotGenerator); } -template bool -GeneralParser::declareDotGeneratorName() +ParserBase::declareDotGeneratorName() { // The special '.generator' binding must be on the function scope, as // generators expect to find it on the CallObject. diff --git a/js/src/frontend/Parser.h b/js/src/frontend/Parser.h index 35063fe84888..449928e8bdd8 100644 --- a/js/src/frontend/Parser.h +++ b/js/src/frontend/Parser.h @@ -246,6 +246,8 @@ class ParserBase bool noteUsedNameInternal(HandlePropertyName name); bool hasUsedName(HandlePropertyName name); bool hasUsedFunctionSpecialName(HandlePropertyName name); + + bool declareDotGeneratorName(); }; inline @@ -401,6 +403,7 @@ class GeneralParser using Base::usedNames; private: + using Base::declareDotGeneratorName; using Base::declareFunctionThis; using Base::hasUsedName; using Base::newDotGeneratorName; @@ -886,7 +889,6 @@ class GeneralParser bool matchInOrOf(bool* isForInp, bool* isForOfp); bool declareFunctionArgumentsObject(); - bool declareDotGeneratorName(); inline bool finishFunction(bool isStandaloneFunction = false);