diff --git a/package.json b/package.json index 12d0ca2e..1102d3fb 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ }, "license": "BSD-2-Clause", "dependencies": { - "acorn": "^6.0.2", + "acorn": "^6.0.7", "acorn-jsx": "^5.0.0", "eslint-visitor-keys": "^1.0.0" }, diff --git a/tests/fixtures/ecma-version/6/modules/export-named-as-default.src.js b/tests/fixtures/ecma-version/6/modules/export-named-as-default.src.js index 5d32a24d..9ba5a5a7 100644 --- a/tests/fixtures/ecma-version/6/modules/export-named-as-default.src.js +++ b/tests/fixtures/ecma-version/6/modules/export-named-as-default.src.js @@ -1 +1,2 @@ +const foo = "foo"; export {foo as default}; diff --git a/tests/fixtures/ecma-version/6/modules/export-named-as-specifier.src.js b/tests/fixtures/ecma-version/6/modules/export-named-as-specifier.src.js index e7820a6f..a0adcf0c 100644 --- a/tests/fixtures/ecma-version/6/modules/export-named-as-specifier.src.js +++ b/tests/fixtures/ecma-version/6/modules/export-named-as-specifier.src.js @@ -1 +1,2 @@ +const foo = "foo"; export {foo as bar}; diff --git a/tests/fixtures/ecma-version/6/modules/export-named-as-specifiers.src.js b/tests/fixtures/ecma-version/6/modules/export-named-as-specifiers.src.js index ff579278..5b6a5974 100644 --- a/tests/fixtures/ecma-version/6/modules/export-named-as-specifiers.src.js +++ b/tests/fixtures/ecma-version/6/modules/export-named-as-specifiers.src.js @@ -1 +1,3 @@ +const foo = "foo", + bar = "bar"; export {foo as default, bar}; diff --git a/tests/fixtures/ecma-version/6/modules/export-named-specifier.src.js b/tests/fixtures/ecma-version/6/modules/export-named-specifier.src.js index df5f5e60..67eb3c94 100644 --- a/tests/fixtures/ecma-version/6/modules/export-named-specifier.src.js +++ b/tests/fixtures/ecma-version/6/modules/export-named-specifier.src.js @@ -1 +1,2 @@ +const foo = "foo"; export {foo}; diff --git a/tests/fixtures/ecma-version/6/modules/export-named-specifiers-comma.src.js b/tests/fixtures/ecma-version/6/modules/export-named-specifiers-comma.src.js index 61bc40fd..6426b6a3 100644 --- a/tests/fixtures/ecma-version/6/modules/export-named-specifiers-comma.src.js +++ b/tests/fixtures/ecma-version/6/modules/export-named-specifiers-comma.src.js @@ -1 +1,3 @@ +const foo = "foo", + bar = "bar"; export {foo, bar,}; diff --git a/tests/fixtures/ecma-version/6/modules/export-named-specifiers.src.js b/tests/fixtures/ecma-version/6/modules/export-named-specifiers.src.js index fdbc9427..60c04fa8 100644 --- a/tests/fixtures/ecma-version/6/modules/export-named-specifiers.src.js +++ b/tests/fixtures/ecma-version/6/modules/export-named-specifiers.src.js @@ -1 +1,3 @@ +const foo = "foo", + bar = "bar"; export {foo, bar}; diff --git a/tests/fixtures/ecma-version/6/modules/invalid-await.result.js b/tests/fixtures/ecma-version/6/modules/invalid-await.result.js index e57bc42a..bb1beebe 100644 --- a/tests/fixtures/ecma-version/6/modules/invalid-await.result.js +++ b/tests/fixtures/ecma-version/6/modules/invalid-await.result.js @@ -2,5 +2,5 @@ module.exports = { "index": 11, "lineNumber": 1, "column": 12, - "message": "Can not use keyword 'await' outside an async function" + "message": "Cannot use keyword 'await' outside an async function" }; diff --git a/tests/fixtures/ecma-version/8/modules/async-func.result.js b/tests/fixtures/ecma-version/8/modules/async-func.result.js index 16dceb4a..a0785833 100644 --- a/tests/fixtures/ecma-version/8/modules/async-func.result.js +++ b/tests/fixtures/ecma-version/8/modules/async-func.result.js @@ -1,5 +1,5 @@ module.exports = { - "message": "Can not use keyword 'await' outside an async function", + "message": "Cannot use keyword 'await' outside an async function", "column": 8, "index": 7, "lineNumber": 1 diff --git a/tests/fixtures/ecma-version/8/modules/await-identifier-math.result.js b/tests/fixtures/ecma-version/8/modules/await-identifier-math.result.js index 64b0d2a9..7192c249 100644 --- a/tests/fixtures/ecma-version/8/modules/await-identifier-math.result.js +++ b/tests/fixtures/ecma-version/8/modules/await-identifier-math.result.js @@ -1,5 +1,5 @@ module.exports = { - "message": "Can not use keyword 'await' outside an async function", + "message": "Cannot use keyword 'await' outside an async function", "column": 18, "index": 17, "lineNumber": 1 diff --git a/tests/fixtures/ecma-version/8/modules/invalid-async-await-identifier.result.js b/tests/fixtures/ecma-version/8/modules/invalid-async-await-identifier.result.js index 965aef08..713a6842 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-async-await-identifier.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-async-await-identifier.result.js @@ -1,6 +1,6 @@ module.exports = { - "message": "Can not use 'await' as identifier inside an async function", + "message": "Cannot use 'await' as identifier inside an async function", "column": 32, "index": 31, "lineNumber": 1 -} \ No newline at end of file +} diff --git a/tests/fixtures/ecma-version/8/modules/invalid-async-await-param.result.js b/tests/fixtures/ecma-version/8/modules/invalid-async-await-param.result.js index e862d369..e5f9512c 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-async-await-param.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-async-await-param.result.js @@ -2,5 +2,5 @@ module.exports = { "index": 19, "lineNumber": 1, "column": 20, - "message": "Can not use 'await' as identifier inside an async function" -} \ No newline at end of file + "message": "Cannot use 'await' as identifier inside an async function" +} diff --git a/tests/fixtures/ecma-version/8/modules/invalid-async-class-method-await.result.js b/tests/fixtures/ecma-version/8/modules/invalid-async-class-method-await.result.js index 965aef08..713a6842 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-async-class-method-await.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-async-class-method-await.result.js @@ -1,6 +1,6 @@ module.exports = { - "message": "Can not use 'await' as identifier inside an async function", + "message": "Cannot use 'await' as identifier inside an async function", "column": 32, "index": 31, "lineNumber": 1 -} \ No newline at end of file +} diff --git a/tests/fixtures/ecma-version/8/modules/invalid-async-method-await-identifier.result.js b/tests/fixtures/ecma-version/8/modules/invalid-async-method-await-identifier.result.js index 30d7613b..06e193dd 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-async-method-await-identifier.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-async-method-await-identifier.result.js @@ -2,5 +2,5 @@ module.exports = { "index": 27, "lineNumber": 1, "column": 28, - "message": "Can not use 'await' as identifier inside an async function" -} \ No newline at end of file + "message": "Cannot use 'await' as identifier inside an async function" +} diff --git a/tests/fixtures/ecma-version/8/modules/invalid-async-method-await-param.result.js b/tests/fixtures/ecma-version/8/modules/invalid-async-method-await-param.result.js index e862d369..e5f9512c 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-async-method-await-param.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-async-method-await-param.result.js @@ -2,5 +2,5 @@ module.exports = { "index": 19, "lineNumber": 1, "column": 20, - "message": "Can not use 'await' as identifier inside an async function" -} \ No newline at end of file + "message": "Cannot use 'await' as identifier inside an async function" +} diff --git a/tests/fixtures/ecma-version/8/modules/invalid-async-method-expression.result.js b/tests/fixtures/ecma-version/8/modules/invalid-async-method-expression.result.js index 351656b4..1250bf71 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-async-method-expression.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-async-method-expression.result.js @@ -2,5 +2,5 @@ module.exports = { "index": 20, "lineNumber": 1, "column": 21, - "message": "Can not use 'await' as identifier inside an async function" -} \ No newline at end of file + "message": "Cannot use 'await' as identifier inside an async function" +} diff --git a/tests/fixtures/ecma-version/8/modules/invalid-async-method-return-await.result.js b/tests/fixtures/ecma-version/8/modules/invalid-async-method-return-await.result.js index 5a970591..8a1a8057 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-async-method-return-await.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-async-method-return-await.result.js @@ -1,6 +1,6 @@ module.exports = { - "message": "Can not use 'await' as identifier inside an async function", + "message": "Cannot use 'await' as identifier inside an async function", "column": 25, "index": 24, "lineNumber": 1 -} \ No newline at end of file +} diff --git a/tests/fixtures/ecma-version/8/modules/invalid-await-arrow-param-parens.result.js b/tests/fixtures/ecma-version/8/modules/invalid-await-arrow-param-parens.result.js index 16dceb4a..a0785833 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-await-arrow-param-parens.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-await-arrow-param-parens.result.js @@ -1,5 +1,5 @@ module.exports = { - "message": "Can not use keyword 'await' outside an async function", + "message": "Cannot use keyword 'await' outside an async function", "column": 8, "index": 7, "lineNumber": 1 diff --git a/tests/fixtures/ecma-version/8/modules/invalid-await-arrow-param.result.js b/tests/fixtures/ecma-version/8/modules/invalid-await-arrow-param.result.js index 3a44064b..f90dbff0 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-await-arrow-param.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-await-arrow-param.result.js @@ -1,5 +1,5 @@ module.exports = { - "message": "Can not use keyword 'await' outside an async function", + "message": "Cannot use keyword 'await' outside an async function", "column": 7, "index": 6, "lineNumber": 1 diff --git a/tests/fixtures/ecma-version/8/modules/invalid-await-destructured-param.result.js b/tests/fixtures/ecma-version/8/modules/invalid-await-destructured-param.result.js index 85a74828..715bff43 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-await-destructured-param.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-await-destructured-param.result.js @@ -2,5 +2,5 @@ module.exports = { "index": 8, "lineNumber": 1, "column": 9, - "message": "Can not use keyword 'await' outside an async function" + "message": "Cannot use keyword 'await' outside an async function" }; diff --git a/tests/fixtures/ecma-version/8/modules/invalid-await-func-expression.result.js b/tests/fixtures/ecma-version/8/modules/invalid-await-func-expression.result.js index e333aacc..7f29a08e 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-await-func-expression.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-await-func-expression.result.js @@ -2,5 +2,5 @@ module.exports = { "index": 16, "lineNumber": 1, "column": 17, - "message": "Can not use 'await' as identifier inside an async function" -} \ No newline at end of file + "message": "Cannot use 'await' as identifier inside an async function" +} diff --git a/tests/fixtures/ecma-version/8/modules/invalid-await-identifier-expression.result.js b/tests/fixtures/ecma-version/8/modules/invalid-await-identifier-expression.result.js index 291bc0cd..f40070a4 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-await-identifier-expression.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-await-identifier-expression.result.js @@ -1,6 +1,6 @@ module.exports = { - "message": "Can not use 'await' as identifier inside an async function", + "message": "Cannot use 'await' as identifier inside an async function", "column": 33, "index": 32, "lineNumber": 1 -} \ No newline at end of file +} diff --git a/tests/fixtures/ecma-version/8/modules/invalid-await-identifier.result.js b/tests/fixtures/ecma-version/8/modules/invalid-await-identifier.result.js index 965aef08..713a6842 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-await-identifier.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-await-identifier.result.js @@ -1,6 +1,6 @@ module.exports = { - "message": "Can not use 'await' as identifier inside an async function", + "message": "Cannot use 'await' as identifier inside an async function", "column": 32, "index": 31, "lineNumber": 1 -} \ No newline at end of file +} diff --git a/tests/fixtures/ecma-version/8/modules/invalid-await-named-destructured-array-param.result.js b/tests/fixtures/ecma-version/8/modules/invalid-await-named-destructured-array-param.result.js index b319d44b..05d746eb 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-await-named-destructured-array-param.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-await-named-destructured-array-param.result.js @@ -1,5 +1,5 @@ module.exports = { - "message": "Can not use keyword 'await' outside an async function", + "message": "Cannot use keyword 'await' outside an async function", "column": 9, "index": 8, "lineNumber": 1 diff --git a/tests/fixtures/ecma-version/8/modules/invalid-await-named-destructured-param.result.js b/tests/fixtures/ecma-version/8/modules/invalid-await-named-destructured-param.result.js index 388f4f03..f4602aed 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-await-named-destructured-param.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-await-named-destructured-param.result.js @@ -1,5 +1,5 @@ module.exports = { - "message": "Can not use keyword 'await' outside an async function", + "message": "Cannot use keyword 'await' outside an async function", "column": 12, "index": 11, "lineNumber": 1 diff --git a/tests/fixtures/ecma-version/8/modules/invalid-await-param-expression.result.js b/tests/fixtures/ecma-version/8/modules/invalid-await-param-expression.result.js index 351656b4..1250bf71 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-await-param-expression.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-await-param-expression.result.js @@ -2,5 +2,5 @@ module.exports = { "index": 20, "lineNumber": 1, "column": 21, - "message": "Can not use 'await' as identifier inside an async function" -} \ No newline at end of file + "message": "Cannot use 'await' as identifier inside an async function" +} diff --git a/tests/fixtures/ecma-version/8/modules/invalid-await-param.result.js b/tests/fixtures/ecma-version/8/modules/invalid-await-param.result.js index e862d369..e5f9512c 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-await-param.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-await-param.result.js @@ -2,5 +2,5 @@ module.exports = { "index": 19, "lineNumber": 1, "column": 20, - "message": "Can not use 'await' as identifier inside an async function" -} \ No newline at end of file + "message": "Cannot use 'await' as identifier inside an async function" +} diff --git a/tests/fixtures/ecma-version/8/modules/invalid-await-top-level.result.js b/tests/fixtures/ecma-version/8/modules/invalid-await-top-level.result.js index b325179c..80890802 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-await-top-level.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-await-top-level.result.js @@ -1,5 +1,5 @@ module.exports = { - "message": "Can not use keyword 'await' outside an async function", + "message": "Cannot use keyword 'await' outside an async function", "column": 1, "index": 0, "lineNumber": 1 diff --git a/tests/fixtures/ecma-version/8/modules/invalid-nested-async.result.js b/tests/fixtures/ecma-version/8/modules/invalid-nested-async.result.js index d5697e80..4dd4c86c 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-nested-async.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-nested-async.result.js @@ -2,5 +2,5 @@ module.exports = { "index": 41, "lineNumber": 2, "column": 18, - "message": "Can not use 'await' as identifier inside an async function" -} \ No newline at end of file + "message": "Cannot use 'await' as identifier inside an async function" +} diff --git a/tests/fixtures/ecma-version/8/modules/invalid-plain-await.result.js b/tests/fixtures/ecma-version/8/modules/invalid-plain-await.result.js index b325179c..80890802 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-plain-await.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-plain-await.result.js @@ -1,5 +1,5 @@ module.exports = { - "message": "Can not use keyword 'await' outside an async function", + "message": "Cannot use keyword 'await' outside an async function", "column": 1, "index": 0, "lineNumber": 1 diff --git a/tests/fixtures/ecma-version/8/modules/plain-await.result.js b/tests/fixtures/ecma-version/8/modules/plain-await.result.js index b325179c..80890802 100644 --- a/tests/fixtures/ecma-version/8/modules/plain-await.result.js +++ b/tests/fixtures/ecma-version/8/modules/plain-await.result.js @@ -1,5 +1,5 @@ module.exports = { - "message": "Can not use keyword 'await' outside an async function", + "message": "Cannot use keyword 'await' outside an async function", "column": 1, "index": 0, "lineNumber": 1 diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-async-await-identifier.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-async-await-identifier.result.js index 965aef08..713a6842 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-async-await-identifier.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-async-await-identifier.result.js @@ -1,6 +1,6 @@ module.exports = { - "message": "Can not use 'await' as identifier inside an async function", + "message": "Cannot use 'await' as identifier inside an async function", "column": 32, "index": 31, "lineNumber": 1 -} \ No newline at end of file +} diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-async-await-param.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-async-await-param.result.js index fc8ff785..0dcc7abe 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-async-await-param.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-async-await-param.result.js @@ -1,6 +1,6 @@ module.exports = { - "message": "Can not use 'await' as identifier inside an async function", + "message": "Cannot use 'await' as identifier inside an async function", "column": 20, "index": 19, "lineNumber": 1 -} \ No newline at end of file +} diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-async-class-method-await.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-async-class-method-await.result.js index 965aef08..713a6842 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-async-class-method-await.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-async-class-method-await.result.js @@ -1,6 +1,6 @@ module.exports = { - "message": "Can not use 'await' as identifier inside an async function", + "message": "Cannot use 'await' as identifier inside an async function", "column": 32, "index": 31, "lineNumber": 1 -} \ No newline at end of file +} diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-async-method-await-identifier.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-async-method-await-identifier.result.js index 1be96c9a..1bc286cf 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-async-method-await-identifier.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-async-method-await-identifier.result.js @@ -1,6 +1,6 @@ module.exports = { - "message": "Can not use 'await' as identifier inside an async function", + "message": "Cannot use 'await' as identifier inside an async function", "column": 28, "index": 27, "lineNumber": 1 -} \ No newline at end of file +} diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-async-method-await-param.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-async-method-await-param.result.js index fc8ff785..0dcc7abe 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-async-method-await-param.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-async-method-await-param.result.js @@ -1,6 +1,6 @@ module.exports = { - "message": "Can not use 'await' as identifier inside an async function", + "message": "Cannot use 'await' as identifier inside an async function", "column": 20, "index": 19, "lineNumber": 1 -} \ No newline at end of file +} diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-async-method-expression.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-async-method-expression.result.js index e982b961..a03f90a7 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-async-method-expression.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-async-method-expression.result.js @@ -1,6 +1,6 @@ module.exports = { - "message": "Can not use 'await' as identifier inside an async function", + "message": "Cannot use 'await' as identifier inside an async function", "column": 21, "index": 20, "lineNumber": 1 -} \ No newline at end of file +} diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-async-method-return-await.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-async-method-return-await.result.js index 5a970591..8a1a8057 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-async-method-return-await.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-async-method-return-await.result.js @@ -1,6 +1,6 @@ module.exports = { - "message": "Can not use 'await' as identifier inside an async function", + "message": "Cannot use 'await' as identifier inside an async function", "column": 25, "index": 24, "lineNumber": 1 -} \ No newline at end of file +} diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-await-arrow-param-parens.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-await-arrow-param-parens.result.js index 5a78f343..27ad4b68 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-await-arrow-param-parens.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-await-arrow-param-parens.result.js @@ -1,6 +1,6 @@ module.exports = { - "message": "Can not use 'await' as identifier inside an async function", + "message": "Cannot use 'await' as identifier inside an async function", "column": 8, "index": 7, "lineNumber": 1 -} \ No newline at end of file +} diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-await-arrow-param.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-await-arrow-param.result.js index 3e8aa569..5cf5510b 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-await-arrow-param.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-await-arrow-param.result.js @@ -1,6 +1,6 @@ module.exports = { - "message": "Can not use 'await' as identifier inside an async function", + "message": "Cannot use 'await' as identifier inside an async function", "column": 7, "index": 6, "lineNumber": 1 -} \ No newline at end of file +} diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-await-destructured-param.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-await-destructured-param.result.js index c5072011..ef744391 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-await-destructured-param.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-await-destructured-param.result.js @@ -1,6 +1,6 @@ module.exports = { - "message": "Can not use 'await' as identifier inside an async function", + "message": "Cannot use 'await' as identifier inside an async function", "column": 9, "index": 8, "lineNumber": 1 -} \ No newline at end of file +} diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-await-func-expression.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-await-func-expression.result.js index ba303681..63e3d476 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-await-func-expression.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-await-func-expression.result.js @@ -1,6 +1,6 @@ module.exports = { - "message": "Can not use 'await' as identifier inside an async function", + "message": "Cannot use 'await' as identifier inside an async function", "column": 17, "index": 16, "lineNumber": 1 -} \ No newline at end of file +} diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-await-identifier-expression.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-await-identifier-expression.result.js index 291bc0cd..f40070a4 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-await-identifier-expression.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-await-identifier-expression.result.js @@ -1,6 +1,6 @@ module.exports = { - "message": "Can not use 'await' as identifier inside an async function", + "message": "Cannot use 'await' as identifier inside an async function", "column": 33, "index": 32, "lineNumber": 1 -} \ No newline at end of file +} diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-await-identifier.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-await-identifier.result.js index 965aef08..713a6842 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-await-identifier.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-await-identifier.result.js @@ -1,6 +1,6 @@ module.exports = { - "message": "Can not use 'await' as identifier inside an async function", + "message": "Cannot use 'await' as identifier inside an async function", "column": 32, "index": 31, "lineNumber": 1 -} \ No newline at end of file +} diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-await-named-destructured-array-param.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-await-named-destructured-array-param.result.js index c5072011..ef744391 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-await-named-destructured-array-param.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-await-named-destructured-array-param.result.js @@ -1,6 +1,6 @@ module.exports = { - "message": "Can not use 'await' as identifier inside an async function", + "message": "Cannot use 'await' as identifier inside an async function", "column": 9, "index": 8, "lineNumber": 1 -} \ No newline at end of file +} diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-await-named-destructured-param.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-await-named-destructured-param.result.js index f5aca93f..f048dceb 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-await-named-destructured-param.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-await-named-destructured-param.result.js @@ -1,6 +1,6 @@ module.exports = { - "message": "Can not use 'await' as identifier inside an async function", + "message": "Cannot use 'await' as identifier inside an async function", "column": 12, "index": 11, "lineNumber": 1 -} \ No newline at end of file +} diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-await-param-expression.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-await-param-expression.result.js index e982b961..a03f90a7 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-await-param-expression.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-await-param-expression.result.js @@ -1,6 +1,6 @@ module.exports = { - "message": "Can not use 'await' as identifier inside an async function", + "message": "Cannot use 'await' as identifier inside an async function", "column": 21, "index": 20, "lineNumber": 1 -} \ No newline at end of file +} diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-await-param.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-await-param.result.js index fc8ff785..0dcc7abe 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-await-param.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-await-param.result.js @@ -1,6 +1,6 @@ module.exports = { - "message": "Can not use 'await' as identifier inside an async function", + "message": "Cannot use 'await' as identifier inside an async function", "column": 20, "index": 19, "lineNumber": 1 -} \ No newline at end of file +} diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-nested-async.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-nested-async.result.js index e1aae2a2..ae2bd9e1 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-nested-async.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-nested-async.result.js @@ -1,6 +1,6 @@ module.exports = { - "message": "Can not use 'await' as identifier inside an async function", + "message": "Cannot use 'await' as identifier inside an async function", "column": 18, "index": 41, "lineNumber": 2 -} \ No newline at end of file +} diff --git a/tests/fixtures/ecma-version/9/async-generator/invalid-await-in-nested-function-1.module-result.js b/tests/fixtures/ecma-version/9/async-generator/invalid-await-in-nested-function-1.module-result.js index 73e6bb83..388aedae 100644 --- a/tests/fixtures/ecma-version/9/async-generator/invalid-await-in-nested-function-1.module-result.js +++ b/tests/fixtures/ecma-version/9/async-generator/invalid-await-in-nested-function-1.module-result.js @@ -2,5 +2,5 @@ module.exports = { "index": 28, "lineNumber": 1, "column": 29, - "message": "Can not use keyword 'await' outside an async function" + "message": "Cannot use keyword 'await' outside an async function" }; diff --git a/tests/fixtures/ecma-version/9/async-generator/invalid-await-in-nested-function-2.module-result.js b/tests/fixtures/ecma-version/9/async-generator/invalid-await-in-nested-function-2.module-result.js index cd1b05ca..0e128aee 100644 --- a/tests/fixtures/ecma-version/9/async-generator/invalid-await-in-nested-function-2.module-result.js +++ b/tests/fixtures/ecma-version/9/async-generator/invalid-await-in-nested-function-2.module-result.js @@ -2,5 +2,5 @@ module.exports = { "index": 30, "lineNumber": 1, "column": 31, - "message": "Can not use keyword 'await' outside an async function" + "message": "Cannot use keyword 'await' outside an async function" }; diff --git a/tests/fixtures/ecma-version/9/async-generator/invalid-await-in-nested-function-3.module-result.js b/tests/fixtures/ecma-version/9/async-generator/invalid-await-in-nested-function-3.module-result.js index ef1e73e6..75af2b97 100644 --- a/tests/fixtures/ecma-version/9/async-generator/invalid-await-in-nested-function-3.module-result.js +++ b/tests/fixtures/ecma-version/9/async-generator/invalid-await-in-nested-function-3.module-result.js @@ -2,5 +2,5 @@ module.exports = { "index": 27, "lineNumber": 1, "column": 28, - "message": "Can not use keyword 'await' outside an async function" + "message": "Cannot use keyword 'await' outside an async function" }; diff --git a/tests/fixtures/ecma-version/9/async-generator/invalid-await-in-nested-function-4.module-result.js b/tests/fixtures/ecma-version/9/async-generator/invalid-await-in-nested-function-4.module-result.js index 1daed299..957a6b13 100644 --- a/tests/fixtures/ecma-version/9/async-generator/invalid-await-in-nested-function-4.module-result.js +++ b/tests/fixtures/ecma-version/9/async-generator/invalid-await-in-nested-function-4.module-result.js @@ -2,5 +2,5 @@ module.exports = { "index": 29, "lineNumber": 1, "column": 30, - "message": "Can not use keyword 'await' outside an async function" + "message": "Cannot use keyword 'await' outside an async function" }; diff --git a/tests/fixtures/ecma-version/9/async-generator/invalid-await-in-nested-function-4.result.js b/tests/fixtures/ecma-version/9/async-generator/invalid-await-in-nested-function-4.result.js index 0bb4116c..e9b5807e 100644 --- a/tests/fixtures/ecma-version/9/async-generator/invalid-await-in-nested-function-4.result.js +++ b/tests/fixtures/ecma-version/9/async-generator/invalid-await-in-nested-function-4.result.js @@ -3,4 +3,4 @@ module.exports = { "lineNumber": 1, "column": 36, "message": "Unexpected token a" -}; \ No newline at end of file +}; diff --git a/tests/fixtures/ecma-version/9/async-generator/invalid-yield-in-nested-function-4.result.js b/tests/fixtures/ecma-version/9/async-generator/invalid-yield-in-nested-function-4.result.js index 0bb4116c..20483b50 100644 --- a/tests/fixtures/ecma-version/9/async-generator/invalid-yield-in-nested-function-4.result.js +++ b/tests/fixtures/ecma-version/9/async-generator/invalid-yield-in-nested-function-4.result.js @@ -1,6 +1,6 @@ module.exports = { - "index": 35, + "index": 29, "lineNumber": 1, - "column": 36, - "message": "Unexpected token a" -}; \ No newline at end of file + "column": 30, + "message": "The keyword 'yield' is reserved" +};