diff --git a/js/src/frontend/Parser.cpp b/js/src/frontend/Parser.cpp index 3031c3bb4e88..729298946cca 100644 --- a/js/src/frontend/Parser.cpp +++ b/js/src/frontend/Parser.cpp @@ -7808,7 +7808,7 @@ bool GeneralParser::classMember( } if (handler_.isPrivateName(propName)) { - if (propAtom == TaggedParserAtomIndex::WellKnown::hashConstructor()) { + if (propAtom == TaggedParserAtomIndex::WellKnown::hash_constructor_()) { errorAt(propNameOffset, JSMSG_BAD_METHOD_DEF); return false; } @@ -8039,7 +8039,7 @@ bool GeneralParser::classMember( Maybe initializerIfPrivate = Nothing(); if (handler_.isPrivateName(propName)) { - if (propAtom == TaggedParserAtomIndex::WellKnown::hashConstructor()) { + if (propAtom == TaggedParserAtomIndex::WellKnown::hash_constructor_()) { // #constructor is an invalid private name. errorAt(propNameOffset, JSMSG_BAD_METHOD_DEF); return false; diff --git a/js/src/vm/CommonPropertyNames.h b/js/src/vm/CommonPropertyNames.h index 3985ec0d53f4..a2f281c64ecc 100644 --- a/js/src/vm/CommonPropertyNames.h +++ b/js/src/vm/CommonPropertyNames.h @@ -248,7 +248,7 @@ MACRO_(h24, "h24") \ MACRO_(Handle, "Handle") \ MACRO_(has, "has") \ - MACRO_(hashConstructor, "#constructor") \ + MACRO_(hash_constructor_, "#constructor") \ MACRO_(hasIndices, "hasIndices") \ MACRO_(hasOwn, "hasOwn") \ MACRO_(hasOwnProperty, "hasOwnProperty") \