diff --git a/package.json b/package.json index 0be3ba0b..a0880cc8 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ }, "license": "BSD-2-Clause", "dependencies": { - "acorn": "^3.0.4", + "acorn": "^3.1.0", "acorn-jsx": "^3.0.0" }, "devDependencies": { diff --git a/tests/fixtures/ecma-version/6/destructuring-and-spread/error-complex-destructured-spread-first.result.js b/tests/fixtures/ecma-version/6/destructuring-and-spread/error-complex-destructured-spread-first.result.js index fc835158..6f230234 100644 --- a/tests/fixtures/ecma-version/6/destructuring-and-spread/error-complex-destructured-spread-first.result.js +++ b/tests/fixtures/ecma-version/6/destructuring-and-spread/error-complex-destructured-spread-first.result.js @@ -1,6 +1,6 @@ module.exports = { - "index": 1, + "index": 4, "lineNumber": 1, - "column": 2, - "message": "Assigning to rvalue" + "column": 5, + "message": "Comma is not permitted after the rest element" }; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/6/destructuring-and-spread/invalid-not-final-array-empty.result.js b/tests/fixtures/ecma-version/6/destructuring-and-spread/invalid-not-final-array-empty.result.js index 38ac0e9f..6f230234 100644 --- a/tests/fixtures/ecma-version/6/destructuring-and-spread/invalid-not-final-array-empty.result.js +++ b/tests/fixtures/ecma-version/6/destructuring-and-spread/invalid-not-final-array-empty.result.js @@ -1,6 +1,6 @@ module.exports = { - "index": 5, + "index": 4, "lineNumber": 1, - "column": 6, - "message": "Trailing comma is not permitted in destructuring patterns" + "column": 5, + "message": "Comma is not permitted after the rest element" }; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/6/destructuring-and-spread/not-final-array.result.js b/tests/fixtures/ecma-version/6/destructuring-and-spread/not-final-array.result.js index fc835158..6f230234 100644 --- a/tests/fixtures/ecma-version/6/destructuring-and-spread/not-final-array.result.js +++ b/tests/fixtures/ecma-version/6/destructuring-and-spread/not-final-array.result.js @@ -1,6 +1,6 @@ module.exports = { - "index": 1, + "index": 4, "lineNumber": 1, - "column": 2, - "message": "Assigning to rvalue" + "column": 5, + "message": "Comma is not permitted after the rest element" }; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/6/restParams/error-not-last.result.js b/tests/fixtures/ecma-version/6/restParams/error-not-last.result.js index 4e7e97af..321408e4 100644 --- a/tests/fixtures/ecma-version/6/restParams/error-not-last.result.js +++ b/tests/fixtures/ecma-version/6/restParams/error-not-last.result.js @@ -2,5 +2,5 @@ module.exports = { "index": 18, "lineNumber": 1, "column": 19, - "message": "Unexpected token ," + "message": "Comma is not permitted after the rest element" }; \ No newline at end of file