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

Unified Diff: test/mjsunit/es6/generator-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/es6/destructuring.js ('k') | test/mjsunit/harmony/async-destructuring.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/es6/generator-destructuring.js
diff --git a/test/mjsunit/es6/generator-destructuring.js b/test/mjsunit/es6/generator-destructuring.js
index 7228782c09806b9e46d237e9af31afa7d2d79f0c..44730ac97065e0184df90191487ba74f43b658a0 100644
--- a/test/mjsunit/es6/generator-destructuring.js
+++ b/test/mjsunit/es6/generator-destructuring.js
@@ -51,10 +51,11 @@
function* f21({x}) { { function x() { return 2 } } return x; }
assertEquals(1, f21({x: 1}).next().value);
- 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);
}());
(function TestDefaults() {
« no previous file with comments | « test/mjsunit/es6/destructuring.js ('k') | test/mjsunit/harmony/async-destructuring.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698