Bug 889584, part 2 - Comment withStatement specialization for syntax-only mode. r=Waldo.

This commit is contained in:
Jason Orendorff 2013-07-12 12:20:57 -05:00
parent 0b9d395c57
commit ca89aaf73c

View File

@ -4478,6 +4478,8 @@ template <>
ParseNode *
Parser<FullParseHandler>::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;