Backout changeset d5cc34a9351d (bug 696109) for jsreftest orange

This commit is contained in:
Ed Morley 2011-10-27 01:53:05 +01:00
parent 3c1d63ece2
commit 64da4fd7f6
3 changed files with 3 additions and 22 deletions

View File

@ -2157,9 +2157,9 @@ ASTSerializer::statement(ParseNode *pn, Value *dst)
return expression(pn->pn_left, &expr) &&
statement(pn->pn_right, &stmt) &&
(pn->isKind(TOK_WITH)
? builder.withStatement(expr, stmt, &pn->pn_pos, dst)
: builder.whileStatement(expr, stmt, &pn->pn_pos, dst));
pn->isKind(TOK_WITH)
? builder.withStatement(expr, stmt, &pn->pn_pos, dst)
: builder.whileStatement(expr, stmt, &pn->pn_pos, dst);
}
case TOK_DO:

View File

@ -58,6 +58,5 @@ require-or(debugMode,skip) script regress-672804-2.js
require-or(debugMode,skip) script regress-672804-3.js
skip-if(!xulRuntime.shell) script regress-677589.js
script regress-677924.js
script regress-696109.js
script regress-691746.js
script regress-697515.js

View File

@ -1,18 +0,0 @@
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/licenses/publicdomain/
* Contributor: Dave Herman <dherman@mozilla.com>
*/
// Bug 696109 - fixed a precedence bug in with/while nodes
try {
Reflect.parse("with({foo})bar");
throw new Error("supposed to be a syntax error");
} catch (e if e instanceof SyntaxError) { }
try {
Reflect.parse("while({foo})bar");
throw new Error("supposed to be a syntax error");
} catch (e if e instanceof SyntaxError) { }
reportCompare(true, true);