| 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() {
|
|
|