diff --git a/test/acorn/tests-babel.js b/test/acorn/tests-babel.js index ad8d7b3a16..71cfa9813b 100644 --- a/test/acorn/tests-babel.js +++ b/test/acorn/tests-babel.js @@ -2,11 +2,11 @@ var test = require("./driver.js").test; var testFail = require("./driver.js").testFail; var testAssert = require("./driver.js").testAssert; -testFail("({a}) = 2;", "You're trying to assign to a parenthesized expression, eg. instead of `({a}) = 0` use `({a} = {})` (1:1)", { +testFail("({a}) = 2;", "You're trying to assign to a parenthesized expression, eg. instead of `({a}) = 0` use `({a} = 0)` (1:1)", { ecmaVersion: 6 }); -testFail("([a]) = 2;", "You're trying to assign to a parenthesized expression, eg. instead of `([a]) = 0` use `([a] = {})` (1:1)", { +testFail("([a]) = 2;", "You're trying to assign to a parenthesized expression, eg. instead of `([a]) = 0` use `([a] = 0)` (1:1)", { ecmaVersion: 6 });