Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Unified Diff: test/webkit/fast/js/parser-syntax-check.js

Issue 1292393002: [parser] make kInvalidLhsInFor a SyntaxError (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Correct tests Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/invalid-lhs.js ('k') | test/webkit/fast/js/parser-syntax-check-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/webkit/fast/js/parser-syntax-check.js
diff --git a/test/webkit/fast/js/parser-syntax-check.js b/test/webkit/fast/js/parser-syntax-check.js
index a1b0e924d796c603c858073839f02e683cc9329d..a3fef13474c7ac94b8d6ef53f2da1f2c3387d6c3 100644
--- a/test/webkit/fast/js/parser-syntax-check.js
+++ b/test/webkit/fast/js/parser-syntax-check.js
@@ -291,21 +291,21 @@ invalid("for ( %a ; ; ) { }");
valid ("for (a in b) break");
valid ("for (a() in b) break");
valid ("for (a().l[4] in b) break");
-valid ("for (new a in b in c in d) break");
-valid ("for (new new new a in b) break");
+invalid("for (new a in b in c in d) break");
+invalid("for (new new new a in b) break");
invalid("for (delete new a() in b) break");
invalid("for (a * a in b) break");
-valid ("for ((a * a) in b) break");
+invalid("for ((a * a) in b) break");
invalid("for (a++ in b) break");
-valid ("for ((a++) in b) break");
+invalid("for ((a++) in b) break");
invalid("for (++a in b) break");
-valid ("for ((++a) in b) break");
+invalid("for ((++a) in b) break");
invalid("for (a, b in c) break");
invalid("for (a,b in c ;;) break");
valid ("for (a,(b in c) ;;) break");
-valid ("for ((a, b) in c) break");
+invalid("for ((a, b) in c) break");
invalid("for (a ? b : c in c) break");
-valid ("for ((a ? b : c) in c) break");
+invalid("for ((a ? b : c) in c) break");
valid ("for (var a in b in c) break");
valid ("for (var a = 5 += 6 in b) break");
invalid("for (var a += 5 in b) break");
« no previous file with comments | « test/mjsunit/invalid-lhs.js ('k') | test/webkit/fast/js/parser-syntax-check-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698