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

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

Powered by Google App Engine
This is Rietveld 408576698