summaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/es6/generator-destructuring.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/mjsunit/es6/generator-destructuring.js')
-rw-r--r--deps/v8/test/mjsunit/es6/generator-destructuring.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/deps/v8/test/mjsunit/es6/generator-destructuring.js b/deps/v8/test/mjsunit/es6/generator-destructuring.js
index 7228782c09..44730ac970 100644
--- a/deps/v8/test/mjsunit/es6/generator-destructuring.js
+++ b/deps/v8/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() {