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

Unified Diff: test/mjsunit/bugs/bug-2728.js

Issue 2513563002: Remove FLAG_min_preparse_length. (Closed)
Patch Set: test262 expectations Created 4 years, 1 month 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/message/for-loop-invalid-lhs.out ('k') | test/mjsunit/eagerly-parsed-lazily-compiled-functions.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/bugs/bug-2728.js
diff --git a/test/mjsunit/bugs/bug-2728.js b/test/mjsunit/bugs/bug-2728.js
new file mode 100644
index 0000000000000000000000000000000000000000..7d549ece91a3d17cf95ae1f3250f5af7c4ea8c25
--- /dev/null
+++ b/test/mjsunit/bugs/bug-2728.js
@@ -0,0 +1,21 @@
+// Copyright 2016 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// from test/webkit/fast/js/kde/parse.js
+assertThrows("function test() { while(0) break lab; } lab: 1");
+assertThrows("function test() { while(0) continue lab; } lab: 1");
+assertThrows("function test() { while(0) break lab } lab: 1");
+assertThrows("function test() { while(0) continue lab } lab: 1");
+
+// from test/webkit/fast/js/parser-syntax-check.js
+assertThrows("break ; break your_limits ; continue ; continue living ; debugger");
+assertThrows("function f() { break ; break your_limits ; continue ; continue living ; debugger }");
+assertThrows("try { break } catch(e) {}");
+assertThrows("function f() { try { break } catch(e) {} }");
+assertThrows("L: L: ;");
+assertThrows("function f() { L: L: ; }");
+assertThrows("L: L1: L: ;");
+assertThrows("function f() { L: L1: L: ; }");
+assertThrows("L: L1: L2: L3: L4: L: ;");
+assertThrows("function f() { L: L1: L2: L3: L4: L: ; }");
« no previous file with comments | « test/message/for-loop-invalid-lhs.out ('k') | test/mjsunit/eagerly-parsed-lazily-compiled-functions.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698