summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/destructuring-default.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/basic/destructuring-default.js')
-rw-r--r--js/src/jit-test/tests/basic/destructuring-default.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/js/src/jit-test/tests/basic/destructuring-default.js b/js/src/jit-test/tests/basic/destructuring-default.js
index 168977e80..49a908b8a 100644
--- a/js/src/jit-test/tests/basic/destructuring-default.js
+++ b/js/src/jit-test/tests/basic/destructuring-default.js
@@ -84,10 +84,7 @@ function testArgumentFunction(pattern, input) {
'return [a, b, c, d, e, f];'
)(input);
}
-// XXX: ES6 requires the `Function` constructor to accept arbitrary
-// `BindingElement`s as formal parameters. See Bug 1037939.
-// Once fixed, please update the assertions below.
-assertThrowsInstanceOf(() => testAll(testArgumentFunction), SyntaxError);
+testAll(testArgumentFunction);
function testThrow(pattern, input) {
return new Function('input',