mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backout changeset d5cc34a9351d (bug 696109) for jsreftest orange
This commit is contained in:
parent
3c1d63ece2
commit
64da4fd7f6
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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);
|
Loading…
Reference in New Issue
Block a user