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); |