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

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

Issue 2523683002: Update tests which are now failing with FLAG_lazy_inner_functions. (Closed)
Patch Set: flag off 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 | « no previous file | test/mjsunit/es6/destructuring.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
index 7d549ece91a3d17cf95ae1f3250f5af7c4ea8c25..4e0cb5919079bb2c8e462dacf7e94947345ec428 100644
--- a/test/mjsunit/bugs/bug-2728.js
+++ b/test/mjsunit/bugs/bug-2728.js
@@ -19,3 +19,21 @@ 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: ; }");
+
+// from test/mjsunit/es6/async-destructuring.js
+assertThrows("'use strict'; async function f(x) { let x = 0; }", SyntaxError);
+assertThrows("'use strict'; async function f({x}) { let x = 0; }", SyntaxError);
+assertThrows("'use strict'; async function f(x) { const x = 0; }", SyntaxError);
+assertThrows("'use strict'; async function f({x}) { const x = 0; }", SyntaxError);
+
+// from test/mjsunit/es6/destructuring.js
+assertThrows("'use strict'; function f(x) { let x = 0; }", SyntaxError);
+assertThrows("'use strict'; function f({x}) { let x = 0; }", SyntaxError);
+assertThrows("'use strict'; function f(x) { const x = 0; }", SyntaxError);
+assertThrows("'use strict'; function f({x}) { const x = 0; }", SyntaxError);
+
+// from test/mjsunit/es6/generator-destructuring.js
+assertThrows("'use strict'; function* f(x) { let x = 0; }", SyntaxError);
+assertThrows("'use strict'; function* f({x}) { let x = 0; }", SyntaxError);
+assertThrows("'use strict'; function* f(x) { const x = 0; }", SyntaxError);
+assertThrows("'use strict'; function* f({x}) { const x = 0; }", SyntaxError);
« no previous file with comments | « no previous file | test/mjsunit/es6/destructuring.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698