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

Unified Diff: test/mjsunit/es6/destructuring.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 | « test/mjsunit/bugs/bug-2728.js ('k') | test/mjsunit/es6/generator-destructuring.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/es6/destructuring.js
diff --git a/test/mjsunit/es6/destructuring.js b/test/mjsunit/es6/destructuring.js
index a4f88844d462b60b2d8e57b798f0bc6f304aae57..f09165a24e88fd2829c01c471bafcbedab970bbc 100644
--- a/test/mjsunit/es6/destructuring.js
+++ b/test/mjsunit/es6/destructuring.js
@@ -1082,10 +1082,11 @@
var g21 = ({x}) => { { function x() { return 2 } } return x(); }
assertThrows(() => g21({x: 1}), TypeError);
- 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);
+ // These errors are not recognized in lazy parsing; see mjsunit/bugs/bug-2728.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);
assertThrows("'use strict'; let g = (x) => { let x = 0; }", SyntaxError);
assertThrows("'use strict'; let g = ({x}) => { let x = 0; }", SyntaxError);
« no previous file with comments | « test/mjsunit/bugs/bug-2728.js ('k') | test/mjsunit/es6/generator-destructuring.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698