Index: test/mjsunit/es6/destructuring.js |
diff --git a/test/mjsunit/es6/destructuring.js b/test/mjsunit/es6/destructuring.js |
index a4f88844d462b60b2d8e57b798f0bc6f304aae57..f09165a24e88fd2829c01c471bafcbedab970bbc 100644 |
--- a/test/mjsunit/es6/destructuring.js |
+++ b/test/mjsunit/es6/destructuring.js |
@@ -1082,10 +1082,11 @@ |
var g21 = ({x}) => { { function x() { return 2 } } return x(); } |
assertThrows(() => g21({x: 1}), TypeError); |
- 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); |
assertThrows("'use strict'; let g = (x) => { let x = 0; }", SyntaxError); |
assertThrows("'use strict'; let g = ({x}) => { let x = 0; }", SyntaxError); |