diff --git a/package.json b/package.json index 28a1a8a8..50a04845 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ }, "license": "BSD-2-Clause", "dependencies": { - "acorn": "4.0.4", + "acorn": "^4.0.11", "acorn-jsx": "^3.0.0" }, "devDependencies": { diff --git a/tests/fixtures/ecma-version/6/arrowFunctions/error-missing-paren.result.js b/tests/fixtures/ecma-version/6/arrowFunctions/error-missing-paren.result.js index 310984a6..289ba6af 100644 --- a/tests/fixtures/ecma-version/6/arrowFunctions/error-missing-paren.result.js +++ b/tests/fixtures/ecma-version/6/arrowFunctions/error-missing-paren.result.js @@ -2,5 +2,5 @@ module.exports = { "index": 4, "lineNumber": 1, "column": 5, - "message": "Unexpected token (" -}; \ No newline at end of file + "message": "Parenthesized pattern" +}; diff --git a/tests/fixtures/ecma-version/6/arrowFunctions/error-wrapped-param.result.js b/tests/fixtures/ecma-version/6/arrowFunctions/error-wrapped-param.result.js index dce37a90..d4c96605 100644 --- a/tests/fixtures/ecma-version/6/arrowFunctions/error-wrapped-param.result.js +++ b/tests/fixtures/ecma-version/6/arrowFunctions/error-wrapped-param.result.js @@ -2,5 +2,5 @@ module.exports = { "index": 1, "lineNumber": 1, "column": 2, - "message": "Unexpected token (" -}; \ No newline at end of file + "message": "Parenthesized pattern" +}; diff --git a/tests/fixtures/ecma-version/6/destructuring/named-param.result.js b/tests/fixtures/ecma-version/6/destructuring/named-param.result.js index ea977284..7d56e428 100644 --- a/tests/fixtures/ecma-version/6/destructuring/named-param.result.js +++ b/tests/fixtures/ecma-version/6/destructuring/named-param.result.js @@ -36,16 +36,16 @@ module.exports = { "loc": { "start": { "line": 1, - "column": 0 + "column": 1 }, "end": { "line": 1, - "column": 30 + "column": 29 } }, "range": [ - 0, - 30 + 1, + 29 ], "operator": "=", "left": { @@ -129,16 +129,16 @@ module.exports = { "loc": { "start": { "line": 1, - "column": 27 + "column": 26 }, "end": { "line": 1, - "column": 30 + "column": 29 } }, "range": [ - 27, - 30 + 26, + 29 ], "name": "res" } @@ -257,47 +257,47 @@ module.exports = { }, { "type": "Punctuator", - "value": ")", + "value": "=", "loc": { "start": { "line": 1, - "column": 23 + "column": 24 }, "end": { "line": 1, - "column": 24 + "column": 25 } }, "range": [ - 23, - 24 + 24, + 25 ] }, { - "type": "Punctuator", - "value": "=", + "type": "Identifier", + "value": "res", "loc": { "start": { "line": 1, - "column": 25 + "column": 26 }, "end": { "line": 1, - "column": 26 + "column": 29 } }, "range": [ - 25, - 26 + 26, + 29 ] }, { - "type": "Identifier", - "value": "res", + "type": "Punctuator", + "value": ")", "loc": { "start": { "line": 1, - "column": 27 + "column": 29 }, "end": { "line": 1, @@ -305,7 +305,7 @@ module.exports = { } }, "range": [ - 27, + 29, 30 ] }, @@ -328,4 +328,4 @@ module.exports = { ] } ] -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-version/6/destructuring/named-param.src.js b/tests/fixtures/ecma-version/6/destructuring/named-param.src.js index b45ac689..e10d7ffa 100644 --- a/tests/fixtures/ecma-version/6/destructuring/named-param.src.js +++ b/tests/fixtures/ecma-version/6/destructuring/named-param.src.js @@ -1 +1 @@ -({ responseText: text }) = res; \ No newline at end of file +({ responseText: text } = res); diff --git a/tests/fixtures/ecma-version/7/error-strict-complex-params.result.js b/tests/fixtures/ecma-version/7/error-strict-complex-params.result.js index e8ef140e..7dc057b3 100644 --- a/tests/fixtures/ecma-version/7/error-strict-complex-params.result.js +++ b/tests/fixtures/ecma-version/7/error-strict-complex-params.result.js @@ -1,6 +1,6 @@ module.exports = { - "index": 24, - "lineNumber": 2, - "column": 3, + "index": 0, + "lineNumber": 1, + "column": 1, "message": "Illegal 'use strict' directive in function with non-simple parameter list" };