diff --git a/js/src/frontend/Parser.cpp b/js/src/frontend/Parser.cpp index 001f8595064..f45ce5d5fe6 100644 --- a/js/src/frontend/Parser.cpp +++ b/js/src/frontend/Parser.cpp @@ -4478,6 +4478,8 @@ template <> ParseNode * Parser::withStatement() { + // test262/ch12/12.10/12.10-0-1.js fails if we try to parse with-statements + // in syntax-parse mode. See bug 892583. if (handler.syntaxParser) { handler.disableSyntaxParser(); abortedSyntaxParse = true;