From 64f5480f9648f1f4205dc0ed9b96850fb0610595 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Mon, 13 Apr 2015 16:45:30 -0700 Subject: [PATCH] fix pattern LHS error messages --- test/acorn/tests-babel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 });