From adecba520f3d31a311e82559e75a2f7b9f8c479f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=AF=E7=84=B6?= Date: Thu, 28 Dec 2023 16:51:10 +0800 Subject: [PATCH] chore: upgrade acorn v8.11.2 --- package.json | 2 +- .../10/json-superset/valid-2028.result.js | 2 +- .../10/json-superset/valid-2029.result.js | 2 +- .../ecma-version/11/bigint/binary.result.js | 4 +- .../ecma-version/11/bigint/decimal.result.js | 2 +- .../ecma-version/11/bigint/hex.result.js | 4 +- .../ecma-version/11/bigint/octal.result.js | 4 +- .../11/dynamic-import/basic.result.js | 2 +- .../first-of-statement.result.js | 2 +- .../11/dynamic-import/new-import.result.js | 2 +- .../11/dynamic-import/with-assign.result.js | 2 +- .../11/dynamic-import/with-sequence.result.js | 2 +- .../modules/import-meta/import-meta.result.js | 2 +- .../12/numeric-separators/bigint.result.js | 2 +- .../12/numeric-separators/binary.result.js | 4 +- .../12/numeric-separators/exponent.result.js | 4 +- .../12/numeric-separators/hex.result.js | 4 +- .../12/numeric-separators/octal.result.js | 4 +- ...lass-static-init-expr-new-target.result.js | 889 +------------- ...d-lone-surrogate-export-exported.result.js | 6 +- ...d-lone-surrogate-import-imported.result.js | 6 +- .../top-level-await/top-await.result.js | 2 +- .../regexp-match-indices.result.js | 12 +- .../valid-regexp-v-flag.result.js | 28 +- .../as-param-with-params.result.js | 2 +- .../6/arrowFunctions/as-param.result.js | 2 +- .../6/arrowFunctions/basic.result.js | 2 +- .../block-body-not-object.result.js | 2 +- .../6/arrowFunctions/block-body.result.js | 2 +- .../error-missing-paren.result.js | 2 +- .../error-wrapped-param.result.js | 2 +- .../6/arrowFunctions/expression.result.js | 2 +- .../6/arrowFunctions/iife.result.js | 2 +- .../arrowFunctions/multiple-params.result.js | 2 +- .../6/arrowFunctions/no-auto-return.result.js | 2 +- .../not-strict-arguments.result.js | 2 +- .../not-strict-eval-params.result.js | 2 +- .../arrowFunctions/not-strict-eval.result.js | 2 +- .../arrowFunctions/not-strict-octal.result.js | 2 +- .../return-arrow-function.result.js | 4 +- .../arrowFunctions/return-sequence.result.js | 4 +- .../single-param-parens.result.js | 2 +- .../single-param-return-identifier.result.js | 2 +- .../6/arrowFunctions/single-param.result.js | 2 +- .../classes-and-generators.result.js | 4 +- .../computed-generator.result.js | 4 +- .../static-generators.result.js | 4 +- .../class-accessor-properties.result.js | 8 +- .../class-computed-static-method.result.js | 4 +- .../class-method-named-prototype.result.js | 4 +- .../class-method-named-static.result.js | 4 +- .../classes/class-one-method-super.result.js | 1030 ++++++++--------- .../6/classes/class-one-method.result.js | 4 +- ...ss-static-method-named-prototype.result.js | 4 +- ...class-static-method-named-static.result.js | 4 +- .../6/classes/class-static-method.result.js | 4 +- ...-methods-and-accessor-properties.result.js | 12 +- ...lass-two-computed-static-methods.result.js | 8 +- ...two-methods-computed-constructor.result.js | 8 +- .../classes/class-two-methods-semi.result.js | 8 +- .../class-two-methods-three-semi.result.js | 8 +- .../class-two-methods-two-semi.result.js | 8 +- .../6/classes/class-two-methods.result.js | 8 +- ...static-methods-named-constructor.result.js | 8 +- .../classes/class-with-constructor.result.js | 4 +- .../default-param-arrow.result.js | 4 +- .../default-param.result.js | 2 +- .../not-strict-local-eval-multi.result.js | 2 +- .../not-strict-local-eval.result.js | 2 +- .../6/defaultParams/declaration.result.js | 2 +- .../6/defaultParams/expression.result.js | 2 +- .../6/defaultParams/method.result.js | 2 +- .../6/defaultParams/not-all-params.result.js | 2 +- .../arrow-param-array.result.js | 2 +- .../arrow-param-nested-array.result.js | 2 +- .../arrow-param-nested-object-named.result.js | 2 +- .../arrow-param-nested-object.result.js | 2 +- .../arrow-param-object.result.js | 2 +- .../param-defaults-array.result.js | 2 +- .../param-defaults-object-nested.result.js | 2 +- .../param-defaults-object.result.js | 2 +- .../param-array.result.js | 2 +- .../param-object-short.result.js | 2 +- .../param-object.result.js | 2 +- .../destructured-array-catch.result.js | 2 +- .../destructured-object-catch.result.js | 2 +- .../6/destructuring/named-param.result.js | 2 +- .../param-defaults-array.result.js | 2 +- .../param-defaults-object-nested.result.js | 2 +- .../param-defaults-object.result.js | 2 +- .../params-array-wrapped.result.js | 2 +- .../6/destructuring/params-array.result.js | 2 +- .../params-multi-object.result.js | 2 +- .../params-nested-array.result.js | 2 +- .../params-nested-object.result.js | 2 +- .../params-object-wrapped.result.js | 2 +- .../6/destructuring/params-object.result.js | 2 +- .../edge-cases/var-let-declaration.result.js | 2 +- .../6/edge-cases/var-let-object.result.js | 2 +- ...for-of-with-function-initializer.result.js | 10 +- .../generators/anonymous-generator.result.js | 2 +- .../6/generators/double-yield.result.js | 2 +- .../empty-generator-declaration.result.js | 2 +- .../generator-declaration.result.js | 2 +- .../6/generators/yield-delegation.result.js | 2 +- .../yield-without-value-in-call.result.js | 2 +- .../yield-without-value-no-semi.result.js | 2 +- .../generators/yield-without-value.result.js | 2 +- .../modules/export-default-function.result.js | 2 +- .../export-default-named-function.result.js | 2 +- ...port-default-parenthesized-class.result.js | 26 +- ...t-default-parenthesized-function.result.js | 32 +- .../6/modules/export-from-default.result.js | 2 +- .../export-from-named-as-default.result.js | 2 +- .../export-from-named-as-specifiers.result.js | 2 +- .../6/modules/export-function.result.js | 2 +- .../modules/export-named-as-default.result.js | 46 +- .../export-named-as-specifier.result.js | 44 +- .../export-named-as-specifiers.result.js | 70 +- .../modules/export-named-specifier.result.js | 40 +- .../export-named-specifiers-comma.result.js | 66 +- .../modules/export-named-specifiers.result.js | 64 +- .../export-var-anonymous-function.result.js | 2 +- .../6/modules/import-default-as.result.js | 2 +- ...mport-named-as-specifier-keyword.result.js | 2 +- .../6/modules/import-null-as-nil.result.js | 2 +- .../6/modules/invalid-await.result.js | 2 +- .../invalid-export-default-token.result.js | 2 +- .../invalid-export-named-default.result.js | 2 +- .../invalid-import-named-as-keyword.result.js | 2 +- .../invalid-import-named-keyword.result.js | 2 +- .../6/modules/valid-await.result.js | 2 +- .../6/newTarget/invalid-new-target.result.js | 2 +- .../invalid-unknown-property.result.js | 2 +- .../6/newTarget/simple-new-target.result.js | 420 +------ .../6/newTarget/simple-new-target.src.js | 4 +- .../computed-getter-and-setter.result.js | 4 +- ...tandalone-expression-with-method.result.js | 2 +- .../proto-computed-property.result.js | 6 +- .../strict-duplicate-properties.result.js | 6 +- ...rict-duplicate-string-properties.result.js | 6 +- .../default-params.result.js | 12 +- .../array-destructuring.result.js | 2 +- .../generator-object-literal-method.result.js | 2 +- .../computed-method-property.result.js | 2 +- .../method-property.result.js | 2 +- .../simple-method-named-get.result.js | 2 +- .../simple-method-named-set.result.js | 2 +- .../simple-method-with-argument.result.js | 2 +- .../simple-method-with-string-name.result.js | 2 +- .../simple-method.result.js | 2 +- .../string-name-method-property.result.js | 2 +- .../shorthand-properties-keyword.result.js | 2 +- .../octalLiterals/strict-uppercase.result.js | 6 +- .../regex-u-extended-escape.result.js | 8 +- .../regex-u-invalid-extended-escape.result.js | 2 +- .../6/regexUFlag/regex-u-simple.result.js | 8 +- .../6/regexYFlag/regexp-y-simple.result.js | 8 +- .../arrow-rest-multi.result.js | 2 +- .../arrow-rest.result.js | 2 +- .../destructured-arrow-array.result.js | 2 +- .../destructured-arrow-multi.result.js | 2 +- .../destructured-arrow-object.result.js | 2 +- .../6/restParams/basic-rest.result.js | 2 +- .../func-expression-multi.result.js | 2 +- .../6/restParams/func-expression.result.js | 2 +- .../6/restParams/single-rest.result.js | 2 +- .../6/templateStrings/octal-literal.result.js | 2 +- .../tagged-template-string.result.js | 2 +- .../basic-string-literal.result.js | 6 +- .../complex-string-literal.result.js | 6 +- .../7/error-strict-complex-params.result.js | 2 +- .../7/exponential-plusplus.result.js | 2 +- .../7/exponential-precedence.result.js | 2 +- .../7/exponential-simple.result.js | 2 +- .../8/comma-dangle-arrow.result.js | 4 +- .../8/comma-dangle-class-method.result.js | 6 +- .../8/comma-dangle-expression.result.js | 4 +- .../8/comma-dangle-func.result.js | 2 +- .../8/comma-dangle-method.result.js | 4 +- .../ecma-version/8/comma-dangle.result.js | 4 +- .../8/destructuring-param.result.js | 4 +- .../8/invalid-comma-dangle-method.result.js | 8 +- .../8/modules/arrow-func-parens.result.js | 4 +- .../8/modules/arrow-func.result.js | 4 +- .../8/modules/async-and-no-async.result.js | 4 +- ...c-arrow-func-destructed-defaults.result.js | 4 +- .../async-arrow-func-destructed.result.js | 4 +- .../async-arrow-func-parens-multi.result.js | 4 +- .../modules/async-arrow-func-parens.result.js | 4 +- .../8/modules/async-arrow-func.result.js | 4 +- .../async-await-arrow-expression.result.js | 4 +- .../modules/async-await-arrow-param.result.js | 6 +- .../async-await-class-method-param.result.js | 8 +- ...async-await-destructured-default.result.js | 4 +- ...nc-await-expression-class-method.result.js | 6 +- .../async-await-function-param.result.js | 6 +- .../async-await-identifier-math.result.js | 4 +- .../async-await-inside-parens.result.js | 4 +- .../8/modules/async-await-math.result.js | 4 +- .../async-await-named-object-method.result.js | 4 +- .../async-await-object-method-param.result.js | 6 +- .../async-await-object-method.result.js | 4 +- .../8/modules/async-await.result.js | 4 +- .../async-class-method-named-await.result.js | 6 +- .../8/modules/async-class-method.result.js | 6 +- .../async-destructured-assignment.result.js | 2 +- .../8/modules/async-expression.result.js | 4 +- .../8/modules/async-func.result.js | 8 +- .../async-named-class-method.result.js | 6 +- .../async-named-generator-method.result.js | 6 +- .../async-named-object-method.result.js | 4 +- ...nc-named-static-generator-method.result.js | 6 +- .../async-object-method-keyword.result.js | 6 +- .../8/modules/async-object-method.result.js | 4 +- ...-static-class-method-named-await.result.js | 6 +- .../async-static-class-method.result.js | 6 +- .../8/modules/async-then-arrow.result.js | 4 +- .../async-wrapped-class-await.result.js | 8 +- .../8/modules/async-yield.result.js | 8 +- .../ecma-version/8/modules/async.result.js | 4 +- .../8/modules/await-identifier-math.result.js | 8 +- .../8/modules/class-method.result.js | 6 +- .../8/modules/export-async.result.js | 4 +- .../export-default-async-expression.result.js | 4 +- .../8/modules/export-default-async.result.js | 4 +- .../8/modules/generator-async-func.result.js | 4 +- .../invalid-async-await-identifier.result.js | 8 +- .../invalid-async-await-param.result.js | 2 +- .../invalid-async-class-broken.result.js | 8 +- .../invalid-async-class-generator.result.js | 8 +- .../invalid-async-class-getter.result.js | 8 +- ...invalid-async-class-method-await.result.js | 8 +- ...d-async-class-method-empty-await.result.js | 8 +- .../invalid-async-class-setter.result.js | 8 +- .../invalid-async-constructor.result.js | 8 +- ...alid-async-expression-generators.result.js | 8 +- ...lid-async-expression-plain-await.result.js | 8 +- .../invalid-async-expression.result.js | 8 +- ...valid-async-generator-expression.result.js | 8 +- .../invalid-async-generator-method.result.js | 8 +- .../modules/invalid-async-generator.result.js | 8 +- ...-async-getter-method-with-params.result.js | 8 +- .../invalid-async-getter-method.result.js | 8 +- ...id-async-method-await-identifier.result.js | 2 +- ...invalid-async-method-await-param.result.js | 2 +- ...invalid-async-method-empty-await.result.js | 8 +- .../invalid-async-method-expression.result.js | 2 +- ...nvalid-async-method-return-await.result.js | 8 +- .../8/modules/invalid-async-object.result.js | 8 +- .../invalid-async-plain-await.result.js | 8 +- .../8/modules/invalid-async-prop.result.js | 8 +- ...valid-async-static-method-broken.result.js | 8 +- ...invalid-await-arrow-param-parens.result.js | 8 +- .../invalid-await-arrow-param.result.js | 8 +- .../8/modules/invalid-await-default.result.js | 8 +- ...valid-await-destructured-default.result.js | 8 +- ...invalid-await-destructured-param.result.js | 2 +- .../invalid-await-func-expression.result.js | 2 +- ...alid-await-identifier-expression.result.js | 8 +- .../invalid-await-identifier.result.js | 8 +- ...t-named-destructured-array-param.result.js | 8 +- ...d-await-named-destructured-param.result.js | 8 +- .../invalid-await-param-expression.result.js | 2 +- .../8/modules/invalid-await-param.result.js | 2 +- .../modules/invalid-await-top-level.result.js | 8 +- ...-broken-async-arrow-after-parens.result.js | 8 +- ...broken-async-arrow-before-parens.result.js | 8 +- .../invalid-broken-async-arrow.result.js | 8 +- ...valid-broken-async-object-method.result.js | 8 +- .../invalid-broken-line-async.result.js | 8 +- .../invalid-class-await-extend.result.js | 8 +- .../8/modules/invalid-nested-async.result.js | 2 +- .../invalid-plain-await-arrow.result.js | 8 +- .../8/modules/invalid-plain-await.result.js | 8 +- .../invalid-static-async-generator.result.js | 8 +- .../invalid-static-async-getter.result.js | 8 +- .../invalid-static-async-setter.result.js | 8 +- .../8/modules/invalid-yield-default.result.js | 8 +- .../nested-async-await-method.result.js | 6 +- .../8/modules/no-async-expression.result.js | 4 +- .../ecma-version/8/modules/no-async.result.js | 4 +- .../8/modules/object-method.result.js | 4 +- .../8/modules/plain-await.result.js | 8 +- .../static-async-named-class-method.result.js | 6 +- .../8/not-strict/arrow-func-parens.result.js | 4 +- .../8/not-strict/arrow-func.result.js | 4 +- .../8/not-strict/async-and-no-async.result.js | 4 +- ...c-arrow-func-destructed-defaults.result.js | 4 +- .../async-arrow-func-destructed.result.js | 4 +- .../async-arrow-func-parens-multi.result.js | 4 +- .../async-arrow-func-parens.result.js | 4 +- .../8/not-strict/async-arrow-func.result.js | 4 +- .../async-as-property-name.result.js | 2 +- .../async-await-arrow-expression.result.js | 4 +- .../async-await-arrow-param.result.js | 6 +- .../async-await-class-method-param.result.js | 8 +- ...async-await-destructured-default.result.js | 4 +- ...nc-await-expression-class-method.result.js | 6 +- .../async-await-function-param.result.js | 6 +- .../async-await-identifier-math.result.js | 4 +- .../async-await-inside-parens.result.js | 4 +- .../8/not-strict/async-await-math.result.js | 4 +- .../async-await-named-object-method.result.js | 4 +- .../async-await-object-method-param.result.js | 6 +- .../async-await-object-method.result.js | 4 +- .../8/not-strict/async-await.result.js | 4 +- .../async-class-method-named-await.result.js | 6 +- .../8/not-strict/async-class-method.result.js | 6 +- .../async-destructured-assignment.result.js | 2 +- .../8/not-strict/async-expression.result.js | 4 +- .../8/not-strict/async-func.result.js | 2 +- .../async-named-class-method.result.js | 6 +- .../async-named-generator-method.result.js | 6 +- .../async-named-object-method.result.js | 4 +- ...nc-named-static-generator-method.result.js | 6 +- .../not-strict/async-named-variable.result.js | 2 +- ...async-object-method-and-property.result.js | 6 +- .../not-strict/async-object-method.result.js | 4 +- .../async-shorthand-property-1.result.js | 2 +- .../async-shorthand-property-2.result.js | 2 +- .../async-shorthand-property-3.result.js | 2 +- ...-static-class-method-named-await.result.js | 6 +- .../async-static-class-method.result.js | 6 +- .../8/not-strict/async-then-arrow.result.js | 4 +- .../async-wrapped-class-await.result.js | 8 +- .../8/not-strict/async-yield.result.js | 4 +- .../ecma-version/8/not-strict/async.result.js | 4 +- .../await-identifier-math.result.js | 4 +- .../8/not-strict/class-method.result.js | 6 +- .../8/not-strict/export-async.result.js | 8 +- .../export-default-async-expression.result.js | 8 +- .../not-strict/export-default-async.result.js | 8 +- .../not-strict/generator-async-func.result.js | 4 +- .../invalid-async-await-identifier.result.js | 8 +- .../invalid-async-await-param.result.js | 8 +- .../invalid-async-class-broken.result.js | 8 +- .../invalid-async-class-generator.result.js | 8 +- .../invalid-async-class-getter.result.js | 8 +- ...invalid-async-class-method-await.result.js | 8 +- ...d-async-class-method-empty-await.result.js | 8 +- .../invalid-async-class-setter.result.js | 8 +- .../invalid-async-constructor.result.js | 8 +- ...alid-async-expression-generators.result.js | 8 +- ...lid-async-expression-plain-await.result.js | 8 +- .../invalid-async-expression.result.js | 8 +- ...valid-async-generator-expression.result.js | 8 +- .../invalid-async-generator-method.result.js | 8 +- .../invalid-async-generator.result.js | 8 +- ...-async-getter-method-with-params.result.js | 8 +- .../invalid-async-getter-method.result.js | 8 +- ...id-async-method-await-identifier.result.js | 8 +- ...invalid-async-method-await-param.result.js | 8 +- ...invalid-async-method-empty-await.result.js | 8 +- .../invalid-async-method-expression.result.js | 8 +- ...nvalid-async-method-return-await.result.js | 8 +- .../not-strict/invalid-async-object.result.js | 8 +- .../invalid-async-plain-await.result.js | 8 +- .../8/not-strict/invalid-async-prop.result.js | 8 +- ...valid-async-static-method-broken.result.js | 8 +- ...invalid-await-arrow-param-parens.result.js | 8 +- .../invalid-await-arrow-param.result.js | 8 +- .../invalid-await-default.result.js | 8 +- ...valid-await-destructured-default.result.js | 8 +- ...invalid-await-destructured-param.result.js | 8 +- .../invalid-await-func-expression.result.js | 8 +- ...alid-await-identifier-expression.result.js | 8 +- .../invalid-await-identifier.result.js | 8 +- ...t-named-destructured-array-param.result.js | 8 +- ...d-await-named-destructured-param.result.js | 8 +- .../invalid-await-param-expression.result.js | 8 +- .../not-strict/invalid-await-param.result.js | 8 +- .../invalid-await-top-level.result.js | 8 +- ...-broken-async-arrow-after-parens.result.js | 8 +- ...broken-async-arrow-before-parens.result.js | 8 +- .../invalid-broken-async-arrow.result.js | 8 +- ...valid-broken-async-object-method.result.js | 8 +- .../invalid-broken-line-async.result.js | 8 +- .../invalid-class-await-extend.result.js | 8 +- .../not-strict/invalid-nested-async.result.js | 8 +- .../invalid-plain-await-arrow.result.js | 8 +- .../not-strict/invalid-plain-await.result.js | 2 +- .../invalid-static-async-generator.result.js | 8 +- .../invalid-static-async-getter.result.js | 8 +- .../invalid-static-async-setter.result.js | 8 +- .../invalid-yield-default.result.js | 8 +- .../nested-async-await-method.result.js | 6 +- .../not-strict/no-async-expression.result.js | 4 +- .../8/not-strict/no-async.result.js | 4 +- .../8/not-strict/object-method.result.js | 4 +- .../8/not-strict/plain-await.result.js | 2 +- .../static-async-named-class-method.result.js | 6 +- .../var-destructured-array-literal.result.js | 2 +- ...wait-in-nested-function-1.module-result.js | 2 +- ...wait-in-nested-function-2.module-result.js | 2 +- ...wait-in-nested-function-3.module-result.js | 2 +- ...wait-in-nested-function-4.module-result.js | 2 +- ...valid-await-in-nested-function-4.result.js | 2 +- ...ield-in-nested-function-1.module-result.js | 2 +- ...ield-in-nested-function-2.module-result.js | 2 +- ...ield-in-nested-function-3.module-result.js | 2 +- ...valid-yield-in-nested-function-4.result.js | 2 +- .../valid-class-method.result.js | 4 +- .../valid-class-static-method.result.js | 4 +- .../valid-function-declaration.result.js | 2 +- .../valid-function-expression.result.js | 2 +- .../valid-object-method.result.js | 2 +- .../valid-in-with-reference.result.js | 2 +- .../valid-linebreak-before-await.result.js | 2 +- .../valid-with-async-arrow-function.result.js | 2 +- ...d-with-async-function-expression.result.js | 2 +- .../valid-with-async-method-1.result.js | 2 +- .../valid-with-async-method-2.result.js | 4 +- .../9/for-await-of/valid-with-let.result.js | 2 +- .../9/for-await-of/valid-with-var.result.js | 2 +- .../valid-negative-1.result.js | 9 +- .../valid-negative-2.result.js | 9 +- .../valid-positive-1.result.js | 9 +- .../valid-positive-2.result.js | 7 +- .../valid-backreference-1.result.js | 10 +- .../valid-backreference-2.result.js | 10 +- .../valid-backreference-3.result.js | 10 +- .../regexp-named-group/valid-group.result.js | 8 +- .../valid-unicode-name-1.result.js | 8 +- .../valid-unicode-name-2.result.js | 8 +- .../9/regexp-s-flag/s-flag.result.js | 7 +- .../valid-negative-1.result.js | 8 +- .../valid-negative-2.result.js | 8 +- .../valid-positive-1.result.js | 8 +- .../valid-positive-2.result.js | 8 +- .../rest-property/valid-parameter-1.result.js | 2 +- .../rest-property/valid-parameter-2.result.js | 2 +- .../rest-property/valid-parameter-3.result.js | 2 +- .../rest-property/valid-parameter-4.result.js | 2 +- 434 files changed, 1497 insertions(+), 3267 deletions(-) diff --git a/package.json b/package.json index 4a2734ee..86cab57e 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "funding": "https://opencollective.com/eslint", "license": "BSD-2-Clause", "dependencies": { - "acorn": "^8.9.0", + "acorn": "^8.11.2", "acorn-jsx": "^5.3.2", "eslint-visitor-keys": "^3.4.1" }, diff --git a/tests/fixtures/ecma-version/10/json-superset/valid-2028.result.js b/tests/fixtures/ecma-version/10/json-superset/valid-2028.result.js index 7f752bcc..74b93084 100644 --- a/tests/fixtures/ecma-version/10/json-superset/valid-2028.result.js +++ b/tests/fixtures/ecma-version/10/json-superset/valid-2028.result.js @@ -165,4 +165,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/10/json-superset/valid-2029.result.js b/tests/fixtures/ecma-version/10/json-superset/valid-2029.result.js index b1914062..e172f3fe 100644 --- a/tests/fixtures/ecma-version/10/json-superset/valid-2029.result.js +++ b/tests/fixtures/ecma-version/10/json-superset/valid-2029.result.js @@ -165,4 +165,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/11/bigint/binary.result.js b/tests/fixtures/ecma-version/11/bigint/binary.result.js index 28ceccf8..a2dbf62f 100644 --- a/tests/fixtures/ecma-version/11/bigint/binary.result.js +++ b/tests/fixtures/ecma-version/11/bigint/binary.result.js @@ -47,7 +47,7 @@ export default { 0, 7 ], - "value": 0b0101n, + "value": 5n, "raw": "0b0101n", "bigint": "0b0101" } @@ -74,4 +74,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/11/bigint/decimal.result.js b/tests/fixtures/ecma-version/11/bigint/decimal.result.js index 59af8890..5002ddc4 100644 --- a/tests/fixtures/ecma-version/11/bigint/decimal.result.js +++ b/tests/fixtures/ecma-version/11/bigint/decimal.result.js @@ -74,4 +74,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/11/bigint/hex.result.js b/tests/fixtures/ecma-version/11/bigint/hex.result.js index f491018f..c3f289b5 100644 --- a/tests/fixtures/ecma-version/11/bigint/hex.result.js +++ b/tests/fixtures/ecma-version/11/bigint/hex.result.js @@ -47,7 +47,7 @@ export default { 0, 5 ], - "value": 0x80n, + "value": 128n, "raw": "0x80n", "bigint": "0x80" } @@ -74,4 +74,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/11/bigint/octal.result.js b/tests/fixtures/ecma-version/11/bigint/octal.result.js index 73ccb7ee..f1ec25e6 100644 --- a/tests/fixtures/ecma-version/11/bigint/octal.result.js +++ b/tests/fixtures/ecma-version/11/bigint/octal.result.js @@ -47,7 +47,7 @@ export default { 0, 6 ], - "value": 0o755n, + "value": 493n, "raw": "0o755n", "bigint": "0o755" } @@ -74,4 +74,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/11/dynamic-import/basic.result.js b/tests/fixtures/ecma-version/11/dynamic-import/basic.result.js index 6c722b19..e2559b5c 100644 --- a/tests/fixtures/ecma-version/11/dynamic-import/basic.result.js +++ b/tests/fixtures/ecma-version/11/dynamic-import/basic.result.js @@ -364,7 +364,7 @@ export default { ] }, { - "type": "Keyword", + "type": "Identifier", "value": "import", "loc": { "start": { diff --git a/tests/fixtures/ecma-version/11/dynamic-import/first-of-statement.result.js b/tests/fixtures/ecma-version/11/dynamic-import/first-of-statement.result.js index 763062b6..769ecd14 100644 --- a/tests/fixtures/ecma-version/11/dynamic-import/first-of-statement.result.js +++ b/tests/fixtures/ecma-version/11/dynamic-import/first-of-statement.result.js @@ -71,7 +71,7 @@ export default { "sourceType": "script", "tokens": [ { - "type": "Keyword", + "type": "Identifier", "value": "import", "loc": { "start": { diff --git a/tests/fixtures/ecma-version/11/dynamic-import/new-import.result.js b/tests/fixtures/ecma-version/11/dynamic-import/new-import.result.js index d755485b..39f1c170 100644 --- a/tests/fixtures/ecma-version/11/dynamic-import/new-import.result.js +++ b/tests/fixtures/ecma-version/11/dynamic-import/new-import.result.js @@ -125,7 +125,7 @@ export default { ] }, { - "type": "Keyword", + "type": "Identifier", "value": "import", "loc": { "start": { diff --git a/tests/fixtures/ecma-version/11/dynamic-import/with-assign.result.js b/tests/fixtures/ecma-version/11/dynamic-import/with-assign.result.js index bd76ba68..3a58e247 100644 --- a/tests/fixtures/ecma-version/11/dynamic-import/with-assign.result.js +++ b/tests/fixtures/ecma-version/11/dynamic-import/with-assign.result.js @@ -108,7 +108,7 @@ export default { "sourceType": "script", "tokens": [ { - "type": "Keyword", + "type": "Identifier", "value": "import", "loc": { "start": { diff --git a/tests/fixtures/ecma-version/11/dynamic-import/with-sequence.result.js b/tests/fixtures/ecma-version/11/dynamic-import/with-sequence.result.js index 78605dc6..2750bad6 100644 --- a/tests/fixtures/ecma-version/11/dynamic-import/with-sequence.result.js +++ b/tests/fixtures/ecma-version/11/dynamic-import/with-sequence.result.js @@ -108,7 +108,7 @@ export default { "sourceType": "script", "tokens": [ { - "type": "Keyword", + "type": "Identifier", "value": "import", "loc": { "start": { diff --git a/tests/fixtures/ecma-version/11/modules/import-meta/import-meta.result.js b/tests/fixtures/ecma-version/11/modules/import-meta/import-meta.result.js index d6bc9a6d..12427b01 100644 --- a/tests/fixtures/ecma-version/11/modules/import-meta/import-meta.result.js +++ b/tests/fixtures/ecma-version/11/modules/import-meta/import-meta.result.js @@ -218,7 +218,7 @@ export default { ] }, { - "type": "Keyword", + "type": "Identifier", "value": "import", "loc": { "start": { diff --git a/tests/fixtures/ecma-version/12/numeric-separators/bigint.result.js b/tests/fixtures/ecma-version/12/numeric-separators/bigint.result.js index be1e5261..51fd039c 100644 --- a/tests/fixtures/ecma-version/12/numeric-separators/bigint.result.js +++ b/tests/fixtures/ecma-version/12/numeric-separators/bigint.result.js @@ -74,4 +74,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/12/numeric-separators/binary.result.js b/tests/fixtures/ecma-version/12/numeric-separators/binary.result.js index dfa1a8c3..dc4f878c 100644 --- a/tests/fixtures/ecma-version/12/numeric-separators/binary.result.js +++ b/tests/fixtures/ecma-version/12/numeric-separators/binary.result.js @@ -47,7 +47,7 @@ export default { 0, 11 ], - "value": 0b01011010, + "value": 90, "raw": "0b0101_1010" } } @@ -73,4 +73,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/12/numeric-separators/exponent.result.js b/tests/fixtures/ecma-version/12/numeric-separators/exponent.result.js index 10a0ed87..a1b0b403 100644 --- a/tests/fixtures/ecma-version/12/numeric-separators/exponent.result.js +++ b/tests/fixtures/ecma-version/12/numeric-separators/exponent.result.js @@ -47,7 +47,7 @@ export default { 0, 10 ], - "value": 1e0123345, + "value": Infinity, "raw": "1e0123_345" } } @@ -73,4 +73,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/12/numeric-separators/hex.result.js b/tests/fixtures/ecma-version/12/numeric-separators/hex.result.js index 1ef2634f..5b822e23 100644 --- a/tests/fixtures/ecma-version/12/numeric-separators/hex.result.js +++ b/tests/fixtures/ecma-version/12/numeric-separators/hex.result.js @@ -47,7 +47,7 @@ export default { 0, 11 ], - "value": 0xdeadbeaf, + "value": 3735928495, "raw": "0xdead_beaf" } } @@ -73,4 +73,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/12/numeric-separators/octal.result.js b/tests/fixtures/ecma-version/12/numeric-separators/octal.result.js index 1599cfe3..131d14d2 100644 --- a/tests/fixtures/ecma-version/12/numeric-separators/octal.result.js +++ b/tests/fixtures/ecma-version/12/numeric-separators/octal.result.js @@ -47,7 +47,7 @@ export default { 0, 9 ], - "value": 0o755666, + "value": 252854, "raw": "0o755_666" } } @@ -73,4 +73,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-expr-new-target.result.js b/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-expr-new-target.result.js index ff4e2037..77ce9dfc 100644 --- a/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-expr-new-target.result.js +++ b/tests/fixtures/ecma-version/13/class-static-blocks/statements-class-static-init-expr-new-target.result.js @@ -1,890 +1,3 @@ export default { - "type": "Program", - "loc": { - "start": { - "line": 15, - "column": 0 - }, - "end": { - "line": 23, - "column": 35 - } - }, - "range": [ - 527, - 633 - ], - "body": [ - { - "type": "VariableDeclaration", - "loc": { - "start": { - "line": 15, - "column": 0 - }, - "end": { - "line": 15, - "column": 17 - } - }, - "range": [ - 527, - 544 - ], - "declarations": [ - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 15, - "column": 4 - }, - "end": { - "line": 15, - "column": 16 - } - }, - "range": [ - 531, - 543 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 15, - "column": 4 - }, - "end": { - "line": 15, - "column": 9 - } - }, - "range": [ - 531, - 536 - ], - "name": "value" - }, - "init": { - "type": "Literal", - "loc": { - "start": { - "line": 15, - "column": 12 - }, - "end": { - "line": 15, - "column": 16 - } - }, - "range": [ - 539, - 543 - ], - "value": null, - "raw": "null" - } - } - ], - "kind": "var" - }, - { - "type": "ClassDeclaration", - "loc": { - "start": { - "line": 17, - "column": 0 - }, - "end": { - "line": 21, - "column": 1 - } - }, - "range": [ - 546, - 596 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 17, - "column": 6 - }, - "end": { - "line": 17, - "column": 7 - } - }, - "range": [ - 552, - 553 - ], - "name": "C" - }, - "superClass": null, - "body": { - "type": "ClassBody", - "loc": { - "start": { - "line": 17, - "column": 8 - }, - "end": { - "line": 21, - "column": 1 - } - }, - "range": [ - 554, - 596 - ], - "body": [ - { - "type": "StaticBlock", - "loc": { - "start": { - "line": 18, - "column": 2 - }, - "end": { - "line": 20, - "column": 3 - } - }, - "range": [ - 558, - 594 - ], - "body": [ - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 19, - "column": 23 - } - }, - "range": [ - 571, - 590 - ], - "expression": { - "type": "AssignmentExpression", - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 19, - "column": 22 - } - }, - "range": [ - 571, - 589 - ], - "operator": "=", - "left": { - "type": "Identifier", - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 19, - "column": 9 - } - }, - "range": [ - 571, - 576 - ], - "name": "value" - }, - "right": { - "type": "MetaProperty", - "loc": { - "start": { - "line": 19, - "column": 12 - }, - "end": { - "line": 19, - "column": 22 - } - }, - "range": [ - 579, - 589 - ], - "meta": { - "type": "Identifier", - "loc": { - "start": { - "line": 19, - "column": 12 - }, - "end": { - "line": 19, - "column": 15 - } - }, - "range": [ - 579, - 582 - ], - "name": "new" - }, - "property": { - "type": "Identifier", - "loc": { - "start": { - "line": 19, - "column": 16 - }, - "end": { - "line": 19, - "column": 22 - } - }, - "range": [ - 583, - 589 - ], - "name": "target" - } - } - } - } - ] - } - ] - } - }, - { - "type": "ExpressionStatement", - "loc": { - "start": { - "line": 23, - "column": 0 - }, - "end": { - "line": 23, - "column": 35 - } - }, - "range": [ - 598, - 633 - ], - "expression": { - "type": "CallExpression", - "loc": { - "start": { - "line": 23, - "column": 0 - }, - "end": { - "line": 23, - "column": 34 - } - }, - "range": [ - 598, - 632 - ], - "callee": { - "type": "MemberExpression", - "loc": { - "start": { - "line": 23, - "column": 0 - }, - "end": { - "line": 23, - "column": 16 - } - }, - "range": [ - 598, - 614 - ], - "object": { - "type": "Identifier", - "loc": { - "start": { - "line": 23, - "column": 0 - }, - "end": { - "line": 23, - "column": 6 - } - }, - "range": [ - 598, - 604 - ], - "name": "assert" - }, - "property": { - "type": "Identifier", - "loc": { - "start": { - "line": 23, - "column": 7 - }, - "end": { - "line": 23, - "column": 16 - } - }, - "range": [ - 605, - 614 - ], - "name": "sameValue" - }, - "computed": false, - "optional": false - }, - "arguments": [ - { - "type": "Identifier", - "loc": { - "start": { - "line": 23, - "column": 17 - }, - "end": { - "line": 23, - "column": 22 - } - }, - "range": [ - 615, - 620 - ], - "name": "value" - }, - { - "type": "Identifier", - "loc": { - "start": { - "line": 23, - "column": 24 - }, - "end": { - "line": 23, - "column": 33 - } - }, - "range": [ - 622, - 631 - ], - "name": "undefined" - } - ], - "optional": false - } - } - ], - "sourceType": "script", - "tokens": [ - { - "type": "Keyword", - "value": "var", - "loc": { - "start": { - "line": 15, - "column": 0 - }, - "end": { - "line": 15, - "column": 3 - } - }, - "range": [ - 527, - 530 - ] - }, - { - "type": "Identifier", - "value": "value", - "loc": { - "start": { - "line": 15, - "column": 4 - }, - "end": { - "line": 15, - "column": 9 - } - }, - "range": [ - 531, - 536 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 15, - "column": 10 - }, - "end": { - "line": 15, - "column": 11 - } - }, - "range": [ - 537, - 538 - ] - }, - { - "type": "Null", - "value": "null", - "loc": { - "start": { - "line": 15, - "column": 12 - }, - "end": { - "line": 15, - "column": 16 - } - }, - "range": [ - 539, - 543 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 15, - "column": 16 - }, - "end": { - "line": 15, - "column": 17 - } - }, - "range": [ - 543, - 544 - ] - }, - { - "type": "Keyword", - "value": "class", - "loc": { - "start": { - "line": 17, - "column": 0 - }, - "end": { - "line": 17, - "column": 5 - } - }, - "range": [ - 546, - 551 - ] - }, - { - "type": "Identifier", - "value": "C", - "loc": { - "start": { - "line": 17, - "column": 6 - }, - "end": { - "line": 17, - "column": 7 - } - }, - "range": [ - 552, - 553 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 17, - "column": 8 - }, - "end": { - "line": 17, - "column": 9 - } - }, - "range": [ - 554, - 555 - ] - }, - { - "type": "Keyword", - "value": "static", - "loc": { - "start": { - "line": 18, - "column": 2 - }, - "end": { - "line": 18, - "column": 8 - } - }, - "range": [ - 558, - 564 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 18, - "column": 9 - }, - "end": { - "line": 18, - "column": 10 - } - }, - "range": [ - 565, - 566 - ] - }, - { - "type": "Identifier", - "value": "value", - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 19, - "column": 9 - } - }, - "range": [ - 571, - 576 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 19, - "column": 10 - }, - "end": { - "line": 19, - "column": 11 - } - }, - "range": [ - 577, - 578 - ] - }, - { - "type": "Keyword", - "value": "new", - "loc": { - "start": { - "line": 19, - "column": 12 - }, - "end": { - "line": 19, - "column": 15 - } - }, - "range": [ - 579, - 582 - ] - }, - { - "type": "Punctuator", - "value": ".", - "loc": { - "start": { - "line": 19, - "column": 15 - }, - "end": { - "line": 19, - "column": 16 - } - }, - "range": [ - 582, - 583 - ] - }, - { - "type": "Identifier", - "value": "target", - "loc": { - "start": { - "line": 19, - "column": 16 - }, - "end": { - "line": 19, - "column": 22 - } - }, - "range": [ - 583, - 589 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 19, - "column": 22 - }, - "end": { - "line": 19, - "column": 23 - } - }, - "range": [ - 589, - 590 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 20, - "column": 2 - }, - "end": { - "line": 20, - "column": 3 - } - }, - "range": [ - 593, - 594 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 21, - "column": 0 - }, - "end": { - "line": 21, - "column": 1 - } - }, - "range": [ - 595, - 596 - ] - }, - { - "type": "Identifier", - "value": "assert", - "loc": { - "start": { - "line": 23, - "column": 0 - }, - "end": { - "line": 23, - "column": 6 - } - }, - "range": [ - 598, - 604 - ] - }, - { - "type": "Punctuator", - "value": ".", - "loc": { - "start": { - "line": 23, - "column": 6 - }, - "end": { - "line": 23, - "column": 7 - } - }, - "range": [ - 604, - 605 - ] - }, - { - "type": "Identifier", - "value": "sameValue", - "loc": { - "start": { - "line": 23, - "column": 7 - }, - "end": { - "line": 23, - "column": 16 - } - }, - "range": [ - 605, - 614 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 23, - "column": 16 - }, - "end": { - "line": 23, - "column": 17 - } - }, - "range": [ - 614, - 615 - ] - }, - { - "type": "Identifier", - "value": "value", - "loc": { - "start": { - "line": 23, - "column": 17 - }, - "end": { - "line": 23, - "column": 22 - } - }, - "range": [ - 615, - 620 - ] - }, - { - "type": "Punctuator", - "value": ",", - "loc": { - "start": { - "line": 23, - "column": 22 - }, - "end": { - "line": 23, - "column": 23 - } - }, - "range": [ - 620, - 621 - ] - }, - { - "type": "Identifier", - "value": "undefined", - "loc": { - "start": { - "line": 23, - "column": 24 - }, - "end": { - "line": 23, - "column": 33 - } - }, - "range": [ - 622, - 631 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 23, - "column": 33 - }, - "end": { - "line": 23, - "column": 34 - } - }, - "range": [ - 631, - 632 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 23, - "column": 34 - }, - "end": { - "line": 23, - "column": 35 - } - }, - "range": [ - 632, - 633 - ] - } - ] + "message": "AST cannot have undefined as a property value.\nProperty name is 'start'" }; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/modules/arbitrary-module-namespace-names/invalid-lone-surrogate-export-exported.result.js b/tests/fixtures/ecma-version/13/modules/arbitrary-module-namespace-names/invalid-lone-surrogate-export-exported.result.js index 514b310e..88e6aadc 100644 --- a/tests/fixtures/ecma-version/13/modules/arbitrary-module-namespace-names/invalid-lone-surrogate-export-exported.result.js +++ b/tests/fixtures/ecma-version/13/modules/arbitrary-module-namespace-names/invalid-lone-surrogate-export-exported.result.js @@ -1,6 +1,6 @@ export default { - "message": "An export name cannot include a lone surrogate.", - "column": 17, "index": 25, - "lineNumber": 2 + "lineNumber": 2, + "column": 17, + "message": "An export name cannot include a lone surrogate." }; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/modules/arbitrary-module-namespace-names/invalid-lone-surrogate-import-imported.result.js b/tests/fixtures/ecma-version/13/modules/arbitrary-module-namespace-names/invalid-lone-surrogate-import-imported.result.js index 49a55fa3..4900078b 100644 --- a/tests/fixtures/ecma-version/13/modules/arbitrary-module-namespace-names/invalid-lone-surrogate-import-imported.result.js +++ b/tests/fixtures/ecma-version/13/modules/arbitrary-module-namespace-names/invalid-lone-surrogate-import-imported.result.js @@ -1,6 +1,6 @@ export default { - "message": "An export name cannot include a lone surrogate.", - "column": 10, "index": 9, - "lineNumber": 1 + "lineNumber": 1, + "column": 10, + "message": "An export name cannot include a lone surrogate." }; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/13/modules/top-level-await/top-await.result.js b/tests/fixtures/ecma-version/13/modules/top-level-await/top-await.result.js index d7b70cf0..b2bef7ab 100644 --- a/tests/fixtures/ecma-version/13/modules/top-level-await/top-await.result.js +++ b/tests/fixtures/ecma-version/13/modules/top-level-await/top-await.result.js @@ -87,7 +87,7 @@ export default { } } ], - "sourceType": "script", + "sourceType": "module", "tokens": [ { "type": "Identifier", diff --git a/tests/fixtures/ecma-version/13/regexp-match-indices/regexp-match-indices.result.js b/tests/fixtures/ecma-version/13/regexp-match-indices/regexp-match-indices.result.js index d30ace1d..52e140ac 100644 --- a/tests/fixtures/ecma-version/13/regexp-match-indices/regexp-match-indices.result.js +++ b/tests/fixtures/ecma-version/13/regexp-match-indices/regexp-match-indices.result.js @@ -1,5 +1,3 @@ -import conditionalRegex from "../../../../lib/conditional-regex-value.js"; - export default { "type": "Program", "loc": { @@ -68,7 +66,7 @@ export default { ], "name": "re1" }, - "init": conditionalRegex({ + "init": { "type": "Literal", "loc": { "start": { @@ -84,15 +82,13 @@ export default { 12, 24 ], - - // /d flag no supported in Node.js 12 or 14 yet - "value": null, + "value": /a+(z)?/d, "raw": "/a+(z)?/d", "regex": { "pattern": "a+(z)?", "flags": "d" } - }) + } } ], "kind": "const" @@ -195,4 +191,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/15/regexp-v-flag/valid-regexp-v-flag.result.js b/tests/fixtures/ecma-version/15/regexp-v-flag/valid-regexp-v-flag.result.js index c983a050..d5234e8f 100644 --- a/tests/fixtures/ecma-version/15/regexp-v-flag/valid-regexp-v-flag.result.js +++ b/tests/fixtures/ecma-version/15/regexp-v-flag/valid-regexp-v-flag.result.js @@ -1,5 +1,3 @@ -import conditionalRegex from "../../../../lib/conditional-regex-value.js"; - export default { "type": "Program", "loc": { @@ -85,7 +83,7 @@ export default { 98 ], "elements": [ - conditionalRegex({ + { "type": "Literal", "loc": { "start": { @@ -101,14 +99,14 @@ export default { 19, 28 ], - "value": null, + "value": /[A&&B]/v, "raw": "/[A&&B]/v", "regex": { "pattern": "[A&&B]", "flags": "v" } - }), - conditionalRegex({ + }, + { "type": "Literal", "loc": { "start": { @@ -124,14 +122,14 @@ export default { 34, 43 ], - "value": null, + "value": /[A--B]/v, "raw": "/[A--B]/v", "regex": { "pattern": "[A--B]", "flags": "v" } - }), - conditionalRegex({ + }, + { "type": "Literal", "loc": { "start": { @@ -147,14 +145,14 @@ export default { 49, 71 ], - "value": null, + "value": /[\q{abc|d}&&[A--B]]/v, "raw": "/[\\q{abc|d}&&[A--B]]/v", "regex": { "pattern": "[\\q{abc|d}&&[A--B]]", "flags": "v" } - }), - conditionalRegex({ + }, + { "type": "Literal", "loc": { "start": { @@ -170,13 +168,13 @@ export default { 77, 95 ], - "value": null, + "value": /\p{Basic_Emoji}/v, "raw": "/\\p{Basic_Emoji}/v", "regex": { "pattern": "\\p{Basic_Emoji}", "flags": "v" } - }) + } ] } } @@ -455,4 +453,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/6/arrowFunctions/as-param-with-params.result.js b/tests/fixtures/ecma-version/6/arrowFunctions/as-param-with-params.result.js index 82a5a0f3..691865c5 100644 --- a/tests/fixtures/ecma-version/6/arrowFunctions/as-param-with-params.result.js +++ b/tests/fixtures/ecma-version/6/arrowFunctions/as-param-with-params.result.js @@ -83,8 +83,8 @@ export default { 16 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "Identifier", diff --git a/tests/fixtures/ecma-version/6/arrowFunctions/as-param.result.js b/tests/fixtures/ecma-version/6/arrowFunctions/as-param.result.js index 3376320d..a459fd08 100644 --- a/tests/fixtures/ecma-version/6/arrowFunctions/as-param.result.js +++ b/tests/fixtures/ecma-version/6/arrowFunctions/as-param.result.js @@ -83,8 +83,8 @@ export default { 12 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/arrowFunctions/basic.result.js b/tests/fixtures/ecma-version/6/arrowFunctions/basic.result.js index db13d0eb..612556d0 100644 --- a/tests/fixtures/ecma-version/6/arrowFunctions/basic.result.js +++ b/tests/fixtures/ecma-version/6/arrowFunctions/basic.result.js @@ -48,8 +48,8 @@ export default { 12 ], "id": null, - "generator": false, "expression": true, + "generator": false, "params": [], "body": { "type": "Literal", diff --git a/tests/fixtures/ecma-version/6/arrowFunctions/block-body-not-object.result.js b/tests/fixtures/ecma-version/6/arrowFunctions/block-body-not-object.result.js index fbb7dbbe..dcab693e 100644 --- a/tests/fixtures/ecma-version/6/arrowFunctions/block-body-not-object.result.js +++ b/tests/fixtures/ecma-version/6/arrowFunctions/block-body-not-object.result.js @@ -48,8 +48,8 @@ export default { 18 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "Identifier", diff --git a/tests/fixtures/ecma-version/6/arrowFunctions/block-body.result.js b/tests/fixtures/ecma-version/6/arrowFunctions/block-body.result.js index 0d2f12cb..cf255639 100644 --- a/tests/fixtures/ecma-version/6/arrowFunctions/block-body.result.js +++ b/tests/fixtures/ecma-version/6/arrowFunctions/block-body.result.js @@ -48,8 +48,8 @@ export default { 12 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "Identifier", 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 2c14bb30..9ed3576f 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 @@ -3,4 +3,4 @@ export default { "lineNumber": 1, "column": 5, "message": "Parenthesized pattern" -}; +}; \ No newline at end of file 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 d3238175..af2996ea 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 @@ -3,4 +3,4 @@ export default { "lineNumber": 1, "column": 2, "message": "Parenthesized pattern" -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/6/arrowFunctions/expression.result.js b/tests/fixtures/ecma-version/6/arrowFunctions/expression.result.js index 7d332226..d0d3f1b1 100644 --- a/tests/fixtures/ecma-version/6/arrowFunctions/expression.result.js +++ b/tests/fixtures/ecma-version/6/arrowFunctions/expression.result.js @@ -48,8 +48,8 @@ export default { 7 ], "id": null, - "generator": false, "expression": true, + "generator": false, "params": [ { "type": "Identifier", diff --git a/tests/fixtures/ecma-version/6/arrowFunctions/iife.result.js b/tests/fixtures/ecma-version/6/arrowFunctions/iife.result.js index 2a4d9407..ed4b4f15 100644 --- a/tests/fixtures/ecma-version/6/arrowFunctions/iife.result.js +++ b/tests/fixtures/ecma-version/6/arrowFunctions/iife.result.js @@ -48,8 +48,8 @@ export default { 23 ], "id": null, - "generator": false, "expression": true, + "generator": false, "params": [ { "type": "Identifier", diff --git a/tests/fixtures/ecma-version/6/arrowFunctions/multiple-params.result.js b/tests/fixtures/ecma-version/6/arrowFunctions/multiple-params.result.js index 5c3a500c..451c38a1 100644 --- a/tests/fixtures/ecma-version/6/arrowFunctions/multiple-params.result.js +++ b/tests/fixtures/ecma-version/6/arrowFunctions/multiple-params.result.js @@ -48,8 +48,8 @@ export default { 16 ], "id": null, - "generator": false, "expression": true, + "generator": false, "params": [ { "type": "Identifier", diff --git a/tests/fixtures/ecma-version/6/arrowFunctions/no-auto-return.result.js b/tests/fixtures/ecma-version/6/arrowFunctions/no-auto-return.result.js index e1fee50a..2e3f00e7 100644 --- a/tests/fixtures/ecma-version/6/arrowFunctions/no-auto-return.result.js +++ b/tests/fixtures/ecma-version/6/arrowFunctions/no-auto-return.result.js @@ -48,8 +48,8 @@ export default { 17 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "Identifier", diff --git a/tests/fixtures/ecma-version/6/arrowFunctions/not-strict-arguments.result.js b/tests/fixtures/ecma-version/6/arrowFunctions/not-strict-arguments.result.js index 24e93335..e7180ee4 100644 --- a/tests/fixtures/ecma-version/6/arrowFunctions/not-strict-arguments.result.js +++ b/tests/fixtures/ecma-version/6/arrowFunctions/not-strict-arguments.result.js @@ -48,8 +48,8 @@ export default { 15 ], "id": null, - "generator": false, "expression": true, + "generator": false, "params": [ { "type": "Identifier", diff --git a/tests/fixtures/ecma-version/6/arrowFunctions/not-strict-eval-params.result.js b/tests/fixtures/ecma-version/6/arrowFunctions/not-strict-eval-params.result.js index baae7923..f612c26d 100644 --- a/tests/fixtures/ecma-version/6/arrowFunctions/not-strict-eval-params.result.js +++ b/tests/fixtures/ecma-version/6/arrowFunctions/not-strict-eval-params.result.js @@ -48,8 +48,8 @@ export default { 15 ], "id": null, - "generator": false, "expression": true, + "generator": false, "params": [ { "type": "Identifier", diff --git a/tests/fixtures/ecma-version/6/arrowFunctions/not-strict-eval.result.js b/tests/fixtures/ecma-version/6/arrowFunctions/not-strict-eval.result.js index 89087372..54927e5f 100644 --- a/tests/fixtures/ecma-version/6/arrowFunctions/not-strict-eval.result.js +++ b/tests/fixtures/ecma-version/6/arrowFunctions/not-strict-eval.result.js @@ -48,8 +48,8 @@ export default { 10 ], "id": null, - "generator": false, "expression": true, + "generator": false, "params": [ { "type": "Identifier", diff --git a/tests/fixtures/ecma-version/6/arrowFunctions/not-strict-octal.result.js b/tests/fixtures/ecma-version/6/arrowFunctions/not-strict-octal.result.js index 5d731d51..a1c03500 100644 --- a/tests/fixtures/ecma-version/6/arrowFunctions/not-strict-octal.result.js +++ b/tests/fixtures/ecma-version/6/arrowFunctions/not-strict-octal.result.js @@ -48,8 +48,8 @@ export default { 9 ], "id": null, - "generator": false, "expression": true, + "generator": false, "params": [ { "type": "Identifier", diff --git a/tests/fixtures/ecma-version/6/arrowFunctions/return-arrow-function.result.js b/tests/fixtures/ecma-version/6/arrowFunctions/return-arrow-function.result.js index aaf468b9..3b93b0ad 100644 --- a/tests/fixtures/ecma-version/6/arrowFunctions/return-arrow-function.result.js +++ b/tests/fixtures/ecma-version/6/arrowFunctions/return-arrow-function.result.js @@ -48,8 +48,8 @@ export default { 12 ], "id": null, - "generator": false, "expression": true, + "generator": false, "params": [ { "type": "Identifier", @@ -87,8 +87,8 @@ export default { 12 ], "id": null, - "generator": false, "expression": true, + "generator": false, "params": [ { "type": "Identifier", diff --git a/tests/fixtures/ecma-version/6/arrowFunctions/return-sequence.result.js b/tests/fixtures/ecma-version/6/arrowFunctions/return-sequence.result.js index 08255c48..ba15ee25 100644 --- a/tests/fixtures/ecma-version/6/arrowFunctions/return-sequence.result.js +++ b/tests/fixtures/ecma-version/6/arrowFunctions/return-sequence.result.js @@ -48,8 +48,8 @@ export default { 28 ], "id": null, - "generator": false, "expression": true, + "generator": false, "params": [ { "type": "Identifier", @@ -87,8 +87,8 @@ export default { 27 ], "id": null, - "generator": false, "expression": true, + "generator": false, "params": [ { "type": "Identifier", diff --git a/tests/fixtures/ecma-version/6/arrowFunctions/single-param-parens.result.js b/tests/fixtures/ecma-version/6/arrowFunctions/single-param-parens.result.js index 0e867f28..8cf6efd4 100644 --- a/tests/fixtures/ecma-version/6/arrowFunctions/single-param-parens.result.js +++ b/tests/fixtures/ecma-version/6/arrowFunctions/single-param-parens.result.js @@ -48,8 +48,8 @@ export default { 13 ], "id": null, - "generator": false, "expression": true, + "generator": false, "params": [ { "type": "Identifier", diff --git a/tests/fixtures/ecma-version/6/arrowFunctions/single-param-return-identifier.result.js b/tests/fixtures/ecma-version/6/arrowFunctions/single-param-return-identifier.result.js index 2a0e3d52..3030dc6d 100644 --- a/tests/fixtures/ecma-version/6/arrowFunctions/single-param-return-identifier.result.js +++ b/tests/fixtures/ecma-version/6/arrowFunctions/single-param-return-identifier.result.js @@ -48,8 +48,8 @@ export default { 14 ], "id": null, - "generator": false, "expression": true, + "generator": false, "params": [ { "type": "Identifier", diff --git a/tests/fixtures/ecma-version/6/arrowFunctions/single-param.result.js b/tests/fixtures/ecma-version/6/arrowFunctions/single-param.result.js index bfa1ee05..e3f71cbe 100644 --- a/tests/fixtures/ecma-version/6/arrowFunctions/single-param.result.js +++ b/tests/fixtures/ecma-version/6/arrowFunctions/single-param.result.js @@ -48,8 +48,8 @@ export default { 11 ], "id": null, - "generator": false, "expression": true, + "generator": false, "params": [ { "type": "Identifier", diff --git a/tests/fixtures/ecma-version/6/classes-and-generators/classes-and-generators.result.js b/tests/fixtures/ecma-version/6/classes-and-generators/classes-and-generators.result.js index f17e5feb..6f2eeb82 100644 --- a/tests/fixtures/ecma-version/6/classes-and-generators/classes-and-generators.result.js +++ b/tests/fixtures/ecma-version/6/classes-and-generators/classes-and-generators.result.js @@ -83,6 +83,7 @@ export default { 13, 24 ], + "static": false, "computed": false, "key": { "type": "Identifier", @@ -102,7 +103,6 @@ export default { ], "name": "bar" }, - "static": false, "kind": "method", "value": { "type": "FunctionExpression", @@ -121,8 +121,8 @@ export default { 24 ], "id": null, - "generator": true, "expression": false, + "generator": true, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/classes-and-generators/computed-generator.result.js b/tests/fixtures/ecma-version/6/classes-and-generators/computed-generator.result.js index 068fbef7..61d80c3c 100644 --- a/tests/fixtures/ecma-version/6/classes-and-generators/computed-generator.result.js +++ b/tests/fixtures/ecma-version/6/classes-and-generators/computed-generator.result.js @@ -83,6 +83,7 @@ export default { 13, 38 ], + "static": false, "computed": true, "key": { "type": "MemberExpression", @@ -138,7 +139,6 @@ export default { }, "computed": false }, - "static": false, "kind": "method", "value": { "type": "FunctionExpression", @@ -157,8 +157,8 @@ export default { 38 ], "id": null, - "generator": true, "expression": false, + "generator": true, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/classes-and-generators/static-generators.result.js b/tests/fixtures/ecma-version/6/classes-and-generators/static-generators.result.js index f9db095f..f20ee720 100644 --- a/tests/fixtures/ecma-version/6/classes-and-generators/static-generators.result.js +++ b/tests/fixtures/ecma-version/6/classes-and-generators/static-generators.result.js @@ -83,6 +83,7 @@ export default { 13, 31 ], + "static": true, "computed": false, "key": { "type": "Identifier", @@ -102,7 +103,6 @@ export default { ], "name": "bar" }, - "static": true, "kind": "method", "value": { "type": "FunctionExpression", @@ -121,8 +121,8 @@ export default { 31 ], "id": null, - "generator": true, "expression": false, + "generator": true, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/classes/class-accessor-properties.result.js b/tests/fixtures/ecma-version/6/classes/class-accessor-properties.result.js index b4f85226..a788eba8 100644 --- a/tests/fixtures/ecma-version/6/classes/class-accessor-properties.result.js +++ b/tests/fixtures/ecma-version/6/classes/class-accessor-properties.result.js @@ -83,6 +83,7 @@ export default { 9, 18 ], + "static": false, "computed": false, "key": { "type": "Identifier", @@ -102,7 +103,6 @@ export default { ], "name": "a" }, - "static": false, "kind": "get", "value": { "type": "FunctionExpression", @@ -121,8 +121,8 @@ export default { 18 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", @@ -160,6 +160,7 @@ export default { 19, 29 ], + "static": false, "computed": false, "key": { "type": "Identifier", @@ -179,7 +180,6 @@ export default { ], "name": "b" }, - "static": false, "kind": "set", "value": { "type": "FunctionExpression", @@ -198,8 +198,8 @@ export default { 29 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "Identifier", diff --git a/tests/fixtures/ecma-version/6/classes/class-computed-static-method.result.js b/tests/fixtures/ecma-version/6/classes/class-computed-static-method.result.js index 10fd1066..8fa48a1d 100644 --- a/tests/fixtures/ecma-version/6/classes/class-computed-static-method.result.js +++ b/tests/fixtures/ecma-version/6/classes/class-computed-static-method.result.js @@ -83,6 +83,7 @@ export default { 9, 23 ], + "static": true, "computed": true, "key": { "type": "Identifier", @@ -102,7 +103,6 @@ export default { ], "name": "a" }, - "static": true, "kind": "method", "value": { "type": "FunctionExpression", @@ -121,8 +121,8 @@ export default { 23 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/classes/class-method-named-prototype.result.js b/tests/fixtures/ecma-version/6/classes/class-method-named-prototype.result.js index 522012f8..54d4f79b 100644 --- a/tests/fixtures/ecma-version/6/classes/class-method-named-prototype.result.js +++ b/tests/fixtures/ecma-version/6/classes/class-method-named-prototype.result.js @@ -83,6 +83,7 @@ export default { 9, 22 ], + "static": false, "computed": false, "key": { "type": "Identifier", @@ -102,7 +103,6 @@ export default { ], "name": "prototype" }, - "static": false, "kind": "method", "value": { "type": "FunctionExpression", @@ -121,8 +121,8 @@ export default { 22 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/classes/class-method-named-static.result.js b/tests/fixtures/ecma-version/6/classes/class-method-named-static.result.js index f8834f66..32617583 100644 --- a/tests/fixtures/ecma-version/6/classes/class-method-named-static.result.js +++ b/tests/fixtures/ecma-version/6/classes/class-method-named-static.result.js @@ -83,6 +83,7 @@ export default { 9, 19 ], + "static": false, "computed": false, "key": { "type": "Identifier", @@ -102,7 +103,6 @@ export default { ], "name": "static" }, - "static": false, "kind": "method", "value": { "type": "FunctionExpression", @@ -121,8 +121,8 @@ export default { 19 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/classes/class-one-method-super.result.js b/tests/fixtures/ecma-version/6/classes/class-one-method-super.result.js index 82ed0891..9c1ac037 100644 --- a/tests/fixtures/ecma-version/6/classes/class-one-method-super.result.js +++ b/tests/fixtures/ecma-version/6/classes/class-one-method-super.result.js @@ -1,587 +1,529 @@ export default { - "type": "Program", - "start": 0, - "end": 64, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 5, - "column": 2 - } - }, - "range": [ - 0, - 64 - ], - "body": [ - { - "type": "ClassDeclaration", - "start": 0, - "end": 63, - "loc": { + "type": "Program", + "loc": { "start": { - "line": 1, - "column": 0 + "line": 1, + "column": 0 }, "end": { - "line": 5, - "column": 1 + "line": 5, + "column": 2 } - }, - "range": [ + }, + "range": [ 0, - 63 - ], - "id": { - "type": "Identifier", - "start": 6, - "end": 7, - "loc": { - "start": { - "line": 1, - "column": 6 - }, - "end": { - "line": 1, - "column": 7 - } - }, - "range": [ - 6, - 7 - ], - "name": "A" - }, - "superClass": { - "type": "Identifier", - "start": 16, - "end": 17, - "loc": { - "start": { - "line": 1, - "column": 16 - }, - "end": { - "line": 1, - "column": 17 - } - }, - "range": [ - 16, - 17 - ], - "name": "B" - }, - "body": { - "type": "ClassBody", - "start": 18, - "end": 63, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 5, - "column": 1 - } - }, - "range": [ - 18, - 63 - ], - "body": [ - { - "type": "MethodDefinition", - "start": 24, - "end": 61, + 64 + ], + "body": [ + { + "type": "ClassDeclaration", "loc": { - "start": { - "line": 2, - "column": 4 - }, - "end": { - "line": 4, - "column": 5 - } - }, - "range": [ - 24, - 61 - ], - "kind": "constructor", - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 24, - "end": 35, - "loc": { "start": { - "line": 2, - "column": 4 + "line": 1, + "column": 0 }, "end": { - "line": 2, - "column": 15 + "line": 5, + "column": 1 } - }, - "range": [ - 24, - 35 - ], - "name": "constructor" }, - "value": { - "type": "FunctionExpression", - "start": 35, - "end": 61, - "loc": { - "start": { - "line": 2, - "column": 15 - }, - "end": { - "line": 4, - "column": 5 - } - }, - "range": [ - 35, - 61 - ], - "id": null, - "expression": false, - "generator": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 37, - "end": 61, + "range": [ + 0, + 63 + ], + "id": { + "type": "Identifier", "loc": { - "start": { - "line": 2, - "column": 17 - }, - "end": { - "line": 4, - "column": 5 - } + "start": { + "line": 1, + "column": 6 + }, + "end": { + "line": 1, + "column": 7 + } }, "range": [ - 37, - 61 + 6, + 7 ], - "body": [ - { - "type": "ExpressionStatement", - "start": 47, - "end": 55, - "loc": { - "start": { - "line": 3, - "column": 8 - }, - "end": { - "line": 3, + "name": "A" + }, + "superClass": { + "type": "Identifier", + "loc": { + "start": { + "line": 1, "column": 16 - } }, - "range": [ - 47, - 55 - ], - "expression": { - "type": "CallExpression", - "start": 47, - "end": 54, - "loc": { - "start": { - "line": 3, - "column": 8 - }, - "end": { - "line": 3, - "column": 15 - } - }, - "range": [ - 47, - 54 - ], - "callee": { - "type": "Super", - "start": 47, - "end": 52, + "end": { + "line": 1, + "column": 17 + } + }, + "range": [ + 16, + 17 + ], + "name": "B" + }, + "body": { + "type": "ClassBody", + "loc": { + "start": { + "line": 1, + "column": 18 + }, + "end": { + "line": 5, + "column": 1 + } + }, + "range": [ + 18, + 63 + ], + "body": [ + { + "type": "MethodDefinition", "loc": { - "start": { - "line": 3, - "column": 8 - }, - "end": { - "line": 3, - "column": 13 - } + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 4, + "column": 5 + } }, "range": [ - 47, - 52 - ] - }, - "arguments": [] + 24, + 61 + ], + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 15 + } + }, + "range": [ + 24, + 35 + ], + "name": "constructor" + }, + "kind": "constructor", + "value": { + "type": "FunctionExpression", + "loc": { + "start": { + "line": 2, + "column": 15 + }, + "end": { + "line": 4, + "column": 5 + } + }, + "range": [ + 35, + 61 + ], + "id": null, + "expression": false, + "generator": false, + "params": [], + "body": { + "type": "BlockStatement", + "loc": { + "start": { + "line": 2, + "column": 17 + }, + "end": { + "line": 4, + "column": 5 + } + }, + "range": [ + 37, + 61 + ], + "body": [ + { + "type": "ExpressionStatement", + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "range": [ + 47, + 55 + ], + "expression": { + "type": "CallExpression", + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 15 + } + }, + "range": [ + 47, + 54 + ], + "callee": { + "type": "Super", + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "range": [ + 47, + 52 + ] + }, + "arguments": [] + } + } + ] + } + } } - } ] - } } - } - ] - } - }, - { - "type": "EmptyStatement", - "start": 63, - "end": 64, - "loc": { - "start": { - "line": 5, - "column": 1 - }, - "end": { - "line": 5, - "column": 2 - } - }, - "range": [ - 63, - 64 - ] - } - ], - "sourceType": "script", - "tokens": [ - { - "type": "Keyword", - "value": "class", - "start": 0, - "end": 5, - "loc": { - "start": { - "line": 1, - "column": 0 }, - "end": { - "line": 1, - "column": 5 + { + "type": "EmptyStatement", + "loc": { + "start": { + "line": 5, + "column": 1 + }, + "end": { + "line": 5, + "column": 2 + } + }, + "range": [ + 63, + 64 + ] } - }, - "range": [ - 0, - 5 - ] - }, - { - "type": "Identifier", - "value": "A", - "start": 6, - "end": 7, - "loc": { - "start": { - "line": 1, - "column": 6 + ], + "sourceType": "script", + "tokens": [ + { + "type": "Keyword", + "value": "class", + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 5 + } + }, + "range": [ + 0, + 5 + ] }, - "end": { - "line": 1, - "column": 7 - } - }, - "range": [ - 6, - 7 - ] - }, - { - "type": "Keyword", - "value": "extends", - "start": 8, - "end": 15, - "loc": { - "start": { - "line": 1, - "column": 8 + { + "type": "Identifier", + "value": "A", + "loc": { + "start": { + "line": 1, + "column": 6 + }, + "end": { + "line": 1, + "column": 7 + } + }, + "range": [ + 6, + 7 + ] }, - "end": { - "line": 1, - "column": 15 - } - }, - "range": [ - 8, - 15 - ] - }, - { - "type": "Identifier", - "value": "B", - "start": 16, - "end": 17, - "loc": { - "start": { - "line": 1, - "column": 16 + { + "type": "Keyword", + "value": "extends", + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 15 + } + }, + "range": [ + 8, + 15 + ] }, - "end": { - "line": 1, - "column": 17 - } - }, - "range": [ - 16, - 17 - ] - }, - { - "type": "Punctuator", - "value": "{", - "start": 18, - "end": 19, - "loc": { - "start": { - "line": 1, - "column": 18 + { + "type": "Identifier", + "value": "B", + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 17 + } + }, + "range": [ + 16, + 17 + ] }, - "end": { - "line": 1, - "column": 19 - } - }, - "range": [ - 18, - 19 - ] - }, - { - "type": "Identifier", - "value": "constructor", - "start": 24, - "end": 35, - "loc": { - "start": { - "line": 2, - "column": 4 + { + "type": "Punctuator", + "value": "{", + "loc": { + "start": { + "line": 1, + "column": 18 + }, + "end": { + "line": 1, + "column": 19 + } + }, + "range": [ + 18, + 19 + ] }, - "end": { - "line": 2, - "column": 15 - } - }, - "range": [ - 24, - 35 - ] - }, - { - "type": "Punctuator", - "value": "(", - "start": 35, - "end": 36, - "loc": { - "start": { - "line": 2, - "column": 15 + { + "type": "Identifier", + "value": "constructor", + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 15 + } + }, + "range": [ + 24, + 35 + ] }, - "end": { - "line": 2, - "column": 16 - } - }, - "range": [ - 35, - 36 - ] - }, - { - "type": "Punctuator", - "value": ")", - "start": 36, - "end": 37, - "loc": { - "start": { - "line": 2, - "column": 16 + { + "type": "Punctuator", + "value": "(", + "loc": { + "start": { + "line": 2, + "column": 15 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "range": [ + 35, + 36 + ] }, - "end": { - "line": 2, - "column": 17 - } - }, - "range": [ - 36, - 37 - ] - }, - { - "type": "Punctuator", - "value": "{", - "start": 37, - "end": 38, - "loc": { - "start": { - "line": 2, - "column": 17 + { + "type": "Punctuator", + "value": ")", + "loc": { + "start": { + "line": 2, + "column": 16 + }, + "end": { + "line": 2, + "column": 17 + } + }, + "range": [ + 36, + 37 + ] }, - "end": { - "line": 2, - "column": 18 - } - }, - "range": [ - 37, - 38 - ] - }, - { - "type": "Keyword", - "value": "super", - "start": 47, - "end": 52, - "loc": { - "start": { - "line": 3, - "column": 8 + { + "type": "Punctuator", + "value": "{", + "loc": { + "start": { + "line": 2, + "column": 17 + }, + "end": { + "line": 2, + "column": 18 + } + }, + "range": [ + 37, + 38 + ] }, - "end": { - "line": 3, - "column": 13 - } - }, - "range": [ - 47, - 52 - ] - }, - { - "type": "Punctuator", - "value": "(", - "start": 52, - "end": 53, - "loc": { - "start": { - "line": 3, - "column": 13 + { + "type": "Keyword", + "value": "super", + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "range": [ + 47, + 52 + ] }, - "end": { - "line": 3, - "column": 14 - } - }, - "range": [ - 52, - 53 - ] - }, - { - "type": "Punctuator", - "value": ")", - "start": 53, - "end": 54, - "loc": { - "start": { - "line": 3, - "column": 14 + { + "type": "Punctuator", + "value": "(", + "loc": { + "start": { + "line": 3, + "column": 13 + }, + "end": { + "line": 3, + "column": 14 + } + }, + "range": [ + 52, + 53 + ] }, - "end": { - "line": 3, - "column": 15 - } - }, - "range": [ - 53, - 54 - ] - }, - { - "type": "Punctuator", - "value": ";", - "start": 54, - "end": 55, - "loc": { - "start": { - "line": 3, - "column": 15 + { + "type": "Punctuator", + "value": ")", + "loc": { + "start": { + "line": 3, + "column": 14 + }, + "end": { + "line": 3, + "column": 15 + } + }, + "range": [ + 53, + 54 + ] }, - "end": { - "line": 3, - "column": 16 - } - }, - "range": [ - 54, - 55 - ] - }, - { - "type": "Punctuator", - "value": "}", - "start": 60, - "end": 61, - "loc": { - "start": { - "line": 4, - "column": 4 + { + "type": "Punctuator", + "value": ";", + "loc": { + "start": { + "line": 3, + "column": 15 + }, + "end": { + "line": 3, + "column": 16 + } + }, + "range": [ + 54, + 55 + ] }, - "end": { - "line": 4, - "column": 5 - } - }, - "range": [ - 60, - 61 - ] - }, - { - "type": "Punctuator", - "value": "}", - "start": 62, - "end": 63, - "loc": { - "start": { - "line": 5, - "column": 0 + { + "type": "Punctuator", + "value": "}", + "loc": { + "start": { + "line": 4, + "column": 4 + }, + "end": { + "line": 4, + "column": 5 + } + }, + "range": [ + 60, + 61 + ] }, - "end": { - "line": 5, - "column": 1 - } - }, - "range": [ - 62, - 63 - ] - }, - { - "type": "Punctuator", - "value": ";", - "start": 63, - "end": 64, - "loc": { - "start": { - "line": 5, - "column": 1 + { + "type": "Punctuator", + "value": "}", + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 1 + } + }, + "range": [ + 62, + 63 + ] }, - "end": { - "line": 5, - "column": 2 + { + "type": "Punctuator", + "value": ";", + "loc": { + "start": { + "line": 5, + "column": 1 + }, + "end": { + "line": 5, + "column": 2 + } + }, + "range": [ + 63, + 64 + ] } - }, - "range": [ - 63, - 64 - ] - } - ] + ] }; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/6/classes/class-one-method.result.js b/tests/fixtures/ecma-version/6/classes/class-one-method.result.js index 786034ea..9bdb8a9a 100644 --- a/tests/fixtures/ecma-version/6/classes/class-one-method.result.js +++ b/tests/fixtures/ecma-version/6/classes/class-one-method.result.js @@ -83,6 +83,7 @@ export default { 14, 19 ], + "static": false, "computed": false, "key": { "type": "Identifier", @@ -102,7 +103,6 @@ export default { ], "name": "a" }, - "static": false, "kind": "method", "value": { "type": "FunctionExpression", @@ -121,8 +121,8 @@ export default { 19 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/classes/class-static-method-named-prototype.result.js b/tests/fixtures/ecma-version/6/classes/class-static-method-named-prototype.result.js index 910b12b5..5e56dded 100644 --- a/tests/fixtures/ecma-version/6/classes/class-static-method-named-prototype.result.js +++ b/tests/fixtures/ecma-version/6/classes/class-static-method-named-prototype.result.js @@ -83,6 +83,7 @@ export default { 9, 33 ], + "static": true, "computed": true, "key": { "type": "Literal", @@ -103,7 +104,6 @@ export default { "value": "prototype", "raw": "\"prototype\"" }, - "static": true, "kind": "method", "value": { "type": "FunctionExpression", @@ -122,8 +122,8 @@ export default { 33 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/classes/class-static-method-named-static.result.js b/tests/fixtures/ecma-version/6/classes/class-static-method-named-static.result.js index 2f328bc2..f201e324 100644 --- a/tests/fixtures/ecma-version/6/classes/class-static-method-named-static.result.js +++ b/tests/fixtures/ecma-version/6/classes/class-static-method-named-static.result.js @@ -83,6 +83,7 @@ export default { 9, 26 ], + "static": true, "computed": false, "key": { "type": "Identifier", @@ -102,7 +103,6 @@ export default { ], "name": "static" }, - "static": true, "kind": "method", "value": { "type": "FunctionExpression", @@ -121,8 +121,8 @@ export default { 26 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/classes/class-static-method.result.js b/tests/fixtures/ecma-version/6/classes/class-static-method.result.js index 76a3b023..20ef59b2 100644 --- a/tests/fixtures/ecma-version/6/classes/class-static-method.result.js +++ b/tests/fixtures/ecma-version/6/classes/class-static-method.result.js @@ -83,6 +83,7 @@ export default { 9, 21 ], + "static": true, "computed": false, "key": { "type": "Identifier", @@ -102,7 +103,6 @@ export default { ], "name": "a" }, - "static": true, "kind": "method", "value": { "type": "FunctionExpression", @@ -121,8 +121,8 @@ export default { 21 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/classes/class-static-methods-and-accessor-properties.result.js b/tests/fixtures/ecma-version/6/classes/class-static-methods-and-accessor-properties.result.js index 8d711376..295dc67f 100644 --- a/tests/fixtures/ecma-version/6/classes/class-static-methods-and-accessor-properties.result.js +++ b/tests/fixtures/ecma-version/6/classes/class-static-methods-and-accessor-properties.result.js @@ -83,6 +83,7 @@ export default { 9, 21 ], + "static": true, "computed": false, "key": { "type": "Identifier", @@ -102,7 +103,6 @@ export default { ], "name": "a" }, - "static": true, "kind": "method", "value": { "type": "FunctionExpression", @@ -121,8 +121,8 @@ export default { 21 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", @@ -160,6 +160,7 @@ export default { 22, 38 ], + "static": true, "computed": false, "key": { "type": "Identifier", @@ -179,7 +180,6 @@ export default { ], "name": "a" }, - "static": true, "kind": "get", "value": { "type": "FunctionExpression", @@ -198,8 +198,8 @@ export default { 38 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", @@ -237,6 +237,7 @@ export default { 39, 56 ], + "static": true, "computed": false, "key": { "type": "Identifier", @@ -256,7 +257,6 @@ export default { ], "name": "a" }, - "static": true, "kind": "set", "value": { "type": "FunctionExpression", @@ -275,8 +275,8 @@ export default { 56 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "Identifier", diff --git a/tests/fixtures/ecma-version/6/classes/class-two-computed-static-methods.result.js b/tests/fixtures/ecma-version/6/classes/class-two-computed-static-methods.result.js index 9a213892..9d98c109 100644 --- a/tests/fixtures/ecma-version/6/classes/class-two-computed-static-methods.result.js +++ b/tests/fixtures/ecma-version/6/classes/class-two-computed-static-methods.result.js @@ -83,6 +83,7 @@ export default { 9, 22 ], + "static": true, "computed": true, "key": { "type": "Identifier", @@ -102,7 +103,6 @@ export default { ], "name": "a" }, - "static": true, "kind": "method", "value": { "type": "FunctionExpression", @@ -121,8 +121,8 @@ export default { 22 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", @@ -160,6 +160,7 @@ export default { 24, 37 ], + "static": true, "computed": true, "key": { "type": "Identifier", @@ -179,7 +180,6 @@ export default { ], "name": "b" }, - "static": true, "kind": "method", "value": { "type": "FunctionExpression", @@ -198,8 +198,8 @@ export default { 37 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/classes/class-two-methods-computed-constructor.result.js b/tests/fixtures/ecma-version/6/classes/class-two-methods-computed-constructor.result.js index 487a504a..764e01c5 100644 --- a/tests/fixtures/ecma-version/6/classes/class-two-methods-computed-constructor.result.js +++ b/tests/fixtures/ecma-version/6/classes/class-two-methods-computed-constructor.result.js @@ -83,6 +83,7 @@ export default { 9, 26 ], + "static": false, "computed": false, "key": { "type": "Literal", @@ -103,7 +104,6 @@ export default { "value": "constructor", "raw": "\"constructor\"" }, - "static": false, "kind": "constructor", "value": { "type": "FunctionExpression", @@ -122,8 +122,8 @@ export default { 26 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", @@ -161,6 +161,7 @@ export default { 27, 46 ], + "static": false, "computed": true, "key": { "type": "Literal", @@ -181,7 +182,6 @@ export default { "value": "constructor", "raw": "\"constructor\"" }, - "static": false, "kind": "method", "value": { "type": "FunctionExpression", @@ -200,8 +200,8 @@ export default { 46 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/classes/class-two-methods-semi.result.js b/tests/fixtures/ecma-version/6/classes/class-two-methods-semi.result.js index 004372dd..d4f9104d 100644 --- a/tests/fixtures/ecma-version/6/classes/class-two-methods-semi.result.js +++ b/tests/fixtures/ecma-version/6/classes/class-two-methods-semi.result.js @@ -83,6 +83,7 @@ export default { 9, 14 ], + "static": false, "computed": false, "key": { "type": "Identifier", @@ -102,7 +103,6 @@ export default { ], "name": "a" }, - "static": false, "kind": "method", "value": { "type": "FunctionExpression", @@ -121,8 +121,8 @@ export default { 14 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", @@ -160,6 +160,7 @@ export default { 15, 20 ], + "static": false, "computed": false, "key": { "type": "Identifier", @@ -179,7 +180,6 @@ export default { ], "name": "b" }, - "static": false, "kind": "method", "value": { "type": "FunctionExpression", @@ -198,8 +198,8 @@ export default { 20 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/classes/class-two-methods-three-semi.result.js b/tests/fixtures/ecma-version/6/classes/class-two-methods-three-semi.result.js index bb6b7808..b34c5d84 100644 --- a/tests/fixtures/ecma-version/6/classes/class-two-methods-three-semi.result.js +++ b/tests/fixtures/ecma-version/6/classes/class-two-methods-three-semi.result.js @@ -83,6 +83,7 @@ export default { 10, 15 ], + "static": false, "computed": false, "key": { "type": "Identifier", @@ -102,7 +103,6 @@ export default { ], "name": "a" }, - "static": false, "kind": "method", "value": { "type": "FunctionExpression", @@ -121,8 +121,8 @@ export default { 15 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", @@ -160,6 +160,7 @@ export default { 16, 21 ], + "static": false, "computed": false, "key": { "type": "Identifier", @@ -179,7 +180,6 @@ export default { ], "name": "b" }, - "static": false, "kind": "method", "value": { "type": "FunctionExpression", @@ -198,8 +198,8 @@ export default { 21 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/classes/class-two-methods-two-semi.result.js b/tests/fixtures/ecma-version/6/classes/class-two-methods-two-semi.result.js index eef76c14..f2578f4b 100644 --- a/tests/fixtures/ecma-version/6/classes/class-two-methods-two-semi.result.js +++ b/tests/fixtures/ecma-version/6/classes/class-two-methods-two-semi.result.js @@ -83,6 +83,7 @@ export default { 9, 14 ], + "static": false, "computed": false, "key": { "type": "Identifier", @@ -102,7 +103,6 @@ export default { ], "name": "a" }, - "static": false, "kind": "method", "value": { "type": "FunctionExpression", @@ -121,8 +121,8 @@ export default { 14 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", @@ -160,6 +160,7 @@ export default { 15, 20 ], + "static": false, "computed": false, "key": { "type": "Identifier", @@ -179,7 +180,6 @@ export default { ], "name": "b" }, - "static": false, "kind": "method", "value": { "type": "FunctionExpression", @@ -198,8 +198,8 @@ export default { 20 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/classes/class-two-methods.result.js b/tests/fixtures/ecma-version/6/classes/class-two-methods.result.js index ff5e4e6e..ee9b351a 100644 --- a/tests/fixtures/ecma-version/6/classes/class-two-methods.result.js +++ b/tests/fixtures/ecma-version/6/classes/class-two-methods.result.js @@ -83,6 +83,7 @@ export default { 9, 14 ], + "static": false, "computed": false, "key": { "type": "Identifier", @@ -102,7 +103,6 @@ export default { ], "name": "a" }, - "static": false, "kind": "method", "value": { "type": "FunctionExpression", @@ -121,8 +121,8 @@ export default { 14 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", @@ -160,6 +160,7 @@ export default { 14, 19 ], + "static": false, "computed": false, "key": { "type": "Identifier", @@ -179,7 +180,6 @@ export default { ], "name": "b" }, - "static": false, "kind": "method", "value": { "type": "FunctionExpression", @@ -198,8 +198,8 @@ export default { 19 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/classes/class-two-static-methods-named-constructor.result.js b/tests/fixtures/ecma-version/6/classes/class-two-static-methods-named-constructor.result.js index 9cd38428..414dd953 100644 --- a/tests/fixtures/ecma-version/6/classes/class-two-static-methods-named-constructor.result.js +++ b/tests/fixtures/ecma-version/6/classes/class-two-static-methods-named-constructor.result.js @@ -83,6 +83,7 @@ export default { 9, 31 ], + "static": true, "computed": false, "key": { "type": "Identifier", @@ -102,7 +103,6 @@ export default { ], "name": "constructor" }, - "static": true, "kind": "method", "value": { "type": "FunctionExpression", @@ -121,8 +121,8 @@ export default { 31 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", @@ -160,6 +160,7 @@ export default { 32, 54 ], + "static": true, "computed": false, "key": { "type": "Identifier", @@ -179,7 +180,6 @@ export default { ], "name": "constructor" }, - "static": true, "kind": "method", "value": { "type": "FunctionExpression", @@ -198,8 +198,8 @@ export default { 54 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/classes/class-with-constructor.result.js b/tests/fixtures/ecma-version/6/classes/class-with-constructor.result.js index 00ba1433..9214bd7c 100644 --- a/tests/fixtures/ecma-version/6/classes/class-with-constructor.result.js +++ b/tests/fixtures/ecma-version/6/classes/class-with-constructor.result.js @@ -83,6 +83,7 @@ export default { 9, 24 ], + "static": false, "computed": false, "key": { "type": "Identifier", @@ -102,7 +103,6 @@ export default { ], "name": "constructor" }, - "static": false, "kind": "constructor", "value": { "type": "FunctionExpression", @@ -121,8 +121,8 @@ export default { 24 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/defaultParams-and-arrowFunctions/default-param-arrow.result.js b/tests/fixtures/ecma-version/6/defaultParams-and-arrowFunctions/default-param-arrow.result.js index 51913e2f..e1e816d5 100644 --- a/tests/fixtures/ecma-version/6/defaultParams-and-arrowFunctions/default-param-arrow.result.js +++ b/tests/fixtures/ecma-version/6/defaultParams-and-arrowFunctions/default-param-arrow.result.js @@ -48,8 +48,8 @@ export default { 20 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "Identifier", @@ -120,8 +120,8 @@ export default { 13 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "Identifier", diff --git a/tests/fixtures/ecma-version/6/defaultParams-and-arrowFunctions/default-param.result.js b/tests/fixtures/ecma-version/6/defaultParams-and-arrowFunctions/default-param.result.js index 737a37ac..6a391564 100644 --- a/tests/fixtures/ecma-version/6/defaultParams-and-arrowFunctions/default-param.result.js +++ b/tests/fixtures/ecma-version/6/defaultParams-and-arrowFunctions/default-param.result.js @@ -48,8 +48,8 @@ export default { 14 ], "id": null, - "generator": false, "expression": true, + "generator": false, "params": [ { "type": "AssignmentPattern", diff --git a/tests/fixtures/ecma-version/6/defaultParams-and-arrowFunctions/not-strict-local-eval-multi.result.js b/tests/fixtures/ecma-version/6/defaultParams-and-arrowFunctions/not-strict-local-eval-multi.result.js index 8d32472d..25d9b53b 100644 --- a/tests/fixtures/ecma-version/6/defaultParams-and-arrowFunctions/not-strict-local-eval-multi.result.js +++ b/tests/fixtures/ecma-version/6/defaultParams-and-arrowFunctions/not-strict-local-eval-multi.result.js @@ -48,8 +48,8 @@ export default { 20 ], "id": null, - "generator": false, "expression": true, + "generator": false, "params": [ { "type": "Identifier", diff --git a/tests/fixtures/ecma-version/6/defaultParams-and-arrowFunctions/not-strict-local-eval.result.js b/tests/fixtures/ecma-version/6/defaultParams-and-arrowFunctions/not-strict-local-eval.result.js index 7e1e13d7..d1cfd1bf 100644 --- a/tests/fixtures/ecma-version/6/defaultParams-and-arrowFunctions/not-strict-local-eval.result.js +++ b/tests/fixtures/ecma-version/6/defaultParams-and-arrowFunctions/not-strict-local-eval.result.js @@ -48,8 +48,8 @@ export default { 17 ], "id": null, - "generator": false, "expression": true, + "generator": false, "params": [ { "type": "AssignmentPattern", diff --git a/tests/fixtures/ecma-version/6/defaultParams/declaration.result.js b/tests/fixtures/ecma-version/6/defaultParams/declaration.result.js index d3cc8fd6..264e5e7a 100644 --- a/tests/fixtures/ecma-version/6/defaultParams/declaration.result.js +++ b/tests/fixtures/ecma-version/6/defaultParams/declaration.result.js @@ -49,8 +49,8 @@ export default { ], "name": "f" }, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "AssignmentPattern", diff --git a/tests/fixtures/ecma-version/6/defaultParams/expression.result.js b/tests/fixtures/ecma-version/6/defaultParams/expression.result.js index fbc6c698..af03be33 100644 --- a/tests/fixtures/ecma-version/6/defaultParams/expression.result.js +++ b/tests/fixtures/ecma-version/6/defaultParams/expression.result.js @@ -83,8 +83,8 @@ export default { 22 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "AssignmentPattern", diff --git a/tests/fixtures/ecma-version/6/defaultParams/method.result.js b/tests/fixtures/ecma-version/6/defaultParams/method.result.js index e1370654..172a9b72 100644 --- a/tests/fixtures/ecma-version/6/defaultParams/method.result.js +++ b/tests/fixtures/ecma-version/6/defaultParams/method.result.js @@ -137,8 +137,8 @@ export default { 25 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "AssignmentPattern", diff --git a/tests/fixtures/ecma-version/6/defaultParams/not-all-params.result.js b/tests/fixtures/ecma-version/6/defaultParams/not-all-params.result.js index be7ad265..279f7b51 100644 --- a/tests/fixtures/ecma-version/6/defaultParams/not-all-params.result.js +++ b/tests/fixtures/ecma-version/6/defaultParams/not-all-params.result.js @@ -83,8 +83,8 @@ export default { 35 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "Identifier", diff --git a/tests/fixtures/ecma-version/6/destructuring-and-arrowFunctions/arrow-param-array.result.js b/tests/fixtures/ecma-version/6/destructuring-and-arrowFunctions/arrow-param-array.result.js index 7178e608..5f722460 100644 --- a/tests/fixtures/ecma-version/6/destructuring-and-arrowFunctions/arrow-param-array.result.js +++ b/tests/fixtures/ecma-version/6/destructuring-and-arrowFunctions/arrow-param-array.result.js @@ -48,8 +48,8 @@ export default { 10 ], "id": null, - "generator": false, "expression": true, + "generator": false, "params": [ { "type": "ArrayPattern", diff --git a/tests/fixtures/ecma-version/6/destructuring-and-arrowFunctions/arrow-param-nested-array.result.js b/tests/fixtures/ecma-version/6/destructuring-and-arrowFunctions/arrow-param-nested-array.result.js index c5d19716..57b4e836 100644 --- a/tests/fixtures/ecma-version/6/destructuring-and-arrowFunctions/arrow-param-nested-array.result.js +++ b/tests/fixtures/ecma-version/6/destructuring-and-arrowFunctions/arrow-param-nested-array.result.js @@ -48,8 +48,8 @@ export default { 15 ], "id": null, - "generator": false, "expression": true, + "generator": false, "params": [ { "type": "ArrayPattern", diff --git a/tests/fixtures/ecma-version/6/destructuring-and-arrowFunctions/arrow-param-nested-object-named.result.js b/tests/fixtures/ecma-version/6/destructuring-and-arrowFunctions/arrow-param-nested-object-named.result.js index 97c8aa26..38be7d72 100644 --- a/tests/fixtures/ecma-version/6/destructuring-and-arrowFunctions/arrow-param-nested-object-named.result.js +++ b/tests/fixtures/ecma-version/6/destructuring-and-arrowFunctions/arrow-param-nested-object-named.result.js @@ -48,8 +48,8 @@ export default { 27 ], "id": null, - "generator": false, "expression": true, + "generator": false, "params": [ { "type": "ObjectPattern", diff --git a/tests/fixtures/ecma-version/6/destructuring-and-arrowFunctions/arrow-param-nested-object.result.js b/tests/fixtures/ecma-version/6/destructuring-and-arrowFunctions/arrow-param-nested-object.result.js index d13c47b8..cce75307 100644 --- a/tests/fixtures/ecma-version/6/destructuring-and-arrowFunctions/arrow-param-nested-object.result.js +++ b/tests/fixtures/ecma-version/6/destructuring-and-arrowFunctions/arrow-param-nested-object.result.js @@ -48,8 +48,8 @@ export default { 17 ], "id": null, - "generator": false, "expression": true, + "generator": false, "params": [ { "type": "ObjectPattern", diff --git a/tests/fixtures/ecma-version/6/destructuring-and-arrowFunctions/arrow-param-object.result.js b/tests/fixtures/ecma-version/6/destructuring-and-arrowFunctions/arrow-param-object.result.js index a3d08e5c..ecdbae4b 100644 --- a/tests/fixtures/ecma-version/6/destructuring-and-arrowFunctions/arrow-param-object.result.js +++ b/tests/fixtures/ecma-version/6/destructuring-and-arrowFunctions/arrow-param-object.result.js @@ -48,8 +48,8 @@ export default { 10 ], "id": null, - "generator": false, "expression": true, + "generator": false, "params": [ { "type": "ObjectPattern", diff --git a/tests/fixtures/ecma-version/6/destructuring-and-arrowFunctions/param-defaults-array.result.js b/tests/fixtures/ecma-version/6/destructuring-and-arrowFunctions/param-defaults-array.result.js index b61f01d0..1ec5fd5c 100644 --- a/tests/fixtures/ecma-version/6/destructuring-and-arrowFunctions/param-defaults-array.result.js +++ b/tests/fixtures/ecma-version/6/destructuring-and-arrowFunctions/param-defaults-array.result.js @@ -48,8 +48,8 @@ export default { 15 ], "id": null, - "generator": false, "expression": true, + "generator": false, "params": [ { "type": "ArrayPattern", diff --git a/tests/fixtures/ecma-version/6/destructuring-and-arrowFunctions/param-defaults-object-nested.result.js b/tests/fixtures/ecma-version/6/destructuring-and-arrowFunctions/param-defaults-object-nested.result.js index cae685e4..db5bba0d 100644 --- a/tests/fixtures/ecma-version/6/destructuring-and-arrowFunctions/param-defaults-object-nested.result.js +++ b/tests/fixtures/ecma-version/6/destructuring-and-arrowFunctions/param-defaults-object-nested.result.js @@ -48,8 +48,8 @@ export default { 35 ], "id": null, - "generator": false, "expression": true, + "generator": false, "params": [ { "type": "ObjectPattern", diff --git a/tests/fixtures/ecma-version/6/destructuring-and-arrowFunctions/param-defaults-object.result.js b/tests/fixtures/ecma-version/6/destructuring-and-arrowFunctions/param-defaults-object.result.js index 2936c592..db209af5 100644 --- a/tests/fixtures/ecma-version/6/destructuring-and-arrowFunctions/param-defaults-object.result.js +++ b/tests/fixtures/ecma-version/6/destructuring-and-arrowFunctions/param-defaults-object.result.js @@ -48,8 +48,8 @@ export default { 15 ], "id": null, - "generator": false, "expression": true, + "generator": false, "params": [ { "type": "ObjectPattern", diff --git a/tests/fixtures/ecma-version/6/destructuring-and-defaultParams/param-array.result.js b/tests/fixtures/ecma-version/6/destructuring-and-defaultParams/param-array.result.js index 9f54b3c8..c961f6da 100644 --- a/tests/fixtures/ecma-version/6/destructuring-and-defaultParams/param-array.result.js +++ b/tests/fixtures/ecma-version/6/destructuring-and-defaultParams/param-array.result.js @@ -49,8 +49,8 @@ export default { ], "name": "f" }, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "AssignmentPattern", diff --git a/tests/fixtures/ecma-version/6/destructuring-and-defaultParams/param-object-short.result.js b/tests/fixtures/ecma-version/6/destructuring-and-defaultParams/param-object-short.result.js index 17b64cf0..40c20a1d 100644 --- a/tests/fixtures/ecma-version/6/destructuring-and-defaultParams/param-object-short.result.js +++ b/tests/fixtures/ecma-version/6/destructuring-and-defaultParams/param-object-short.result.js @@ -103,8 +103,8 @@ export default { 21 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "AssignmentPattern", diff --git a/tests/fixtures/ecma-version/6/destructuring-and-defaultParams/param-object.result.js b/tests/fixtures/ecma-version/6/destructuring-and-defaultParams/param-object.result.js index 0072d3d5..e2d4170b 100644 --- a/tests/fixtures/ecma-version/6/destructuring-and-defaultParams/param-object.result.js +++ b/tests/fixtures/ecma-version/6/destructuring-and-defaultParams/param-object.result.js @@ -83,8 +83,8 @@ export default { 30 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "AssignmentPattern", diff --git a/tests/fixtures/ecma-version/6/destructuring/destructured-array-catch.result.js b/tests/fixtures/ecma-version/6/destructuring/destructured-array-catch.result.js index 87303cb3..f6098299 100644 --- a/tests/fixtures/ecma-version/6/destructuring/destructured-array-catch.result.js +++ b/tests/fixtures/ecma-version/6/destructuring/destructured-array-catch.result.js @@ -49,8 +49,8 @@ export default { ], "name": "x" }, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "ObjectPattern", diff --git a/tests/fixtures/ecma-version/6/destructuring/destructured-object-catch.result.js b/tests/fixtures/ecma-version/6/destructuring/destructured-object-catch.result.js index 311ce64d..e45fa6ef 100644 --- a/tests/fixtures/ecma-version/6/destructuring/destructured-object-catch.result.js +++ b/tests/fixtures/ecma-version/6/destructuring/destructured-object-catch.result.js @@ -49,8 +49,8 @@ export default { ], "name": "x" }, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "ObjectPattern", 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 615ccc57..e0c9f730 100644 --- a/tests/fixtures/ecma-version/6/destructuring/named-param.result.js +++ b/tests/fixtures/ecma-version/6/destructuring/named-param.result.js @@ -328,4 +328,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/6/destructuring/param-defaults-array.result.js b/tests/fixtures/ecma-version/6/destructuring/param-defaults-array.result.js index bbc0d697..cb43540b 100644 --- a/tests/fixtures/ecma-version/6/destructuring/param-defaults-array.result.js +++ b/tests/fixtures/ecma-version/6/destructuring/param-defaults-array.result.js @@ -49,8 +49,8 @@ export default { ], "name": "a" }, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "ArrayPattern", diff --git a/tests/fixtures/ecma-version/6/destructuring/param-defaults-object-nested.result.js b/tests/fixtures/ecma-version/6/destructuring/param-defaults-object-nested.result.js index a6dd16f5..d623d931 100644 --- a/tests/fixtures/ecma-version/6/destructuring/param-defaults-object-nested.result.js +++ b/tests/fixtures/ecma-version/6/destructuring/param-defaults-object-nested.result.js @@ -49,8 +49,8 @@ export default { ], "name": "a" }, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "ObjectPattern", diff --git a/tests/fixtures/ecma-version/6/destructuring/param-defaults-object.result.js b/tests/fixtures/ecma-version/6/destructuring/param-defaults-object.result.js index da1f1a60..6e1501fd 100644 --- a/tests/fixtures/ecma-version/6/destructuring/param-defaults-object.result.js +++ b/tests/fixtures/ecma-version/6/destructuring/param-defaults-object.result.js @@ -49,8 +49,8 @@ export default { ], "name": "a" }, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "ObjectPattern", diff --git a/tests/fixtures/ecma-version/6/destructuring/params-array-wrapped.result.js b/tests/fixtures/ecma-version/6/destructuring/params-array-wrapped.result.js index 4cc082e8..d4e1b0bb 100644 --- a/tests/fixtures/ecma-version/6/destructuring/params-array-wrapped.result.js +++ b/tests/fixtures/ecma-version/6/destructuring/params-array-wrapped.result.js @@ -65,8 +65,8 @@ export default { ], "name": "x" }, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "ArrayPattern", diff --git a/tests/fixtures/ecma-version/6/destructuring/params-array.result.js b/tests/fixtures/ecma-version/6/destructuring/params-array.result.js index d6d4d409..19064eec 100644 --- a/tests/fixtures/ecma-version/6/destructuring/params-array.result.js +++ b/tests/fixtures/ecma-version/6/destructuring/params-array.result.js @@ -49,8 +49,8 @@ export default { ], "name": "x" }, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "ArrayPattern", diff --git a/tests/fixtures/ecma-version/6/destructuring/params-multi-object.result.js b/tests/fixtures/ecma-version/6/destructuring/params-multi-object.result.js index 00d433d3..bd607188 100644 --- a/tests/fixtures/ecma-version/6/destructuring/params-multi-object.result.js +++ b/tests/fixtures/ecma-version/6/destructuring/params-multi-object.result.js @@ -49,8 +49,8 @@ export default { ], "name": "x" }, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "Identifier", diff --git a/tests/fixtures/ecma-version/6/destructuring/params-nested-array.result.js b/tests/fixtures/ecma-version/6/destructuring/params-nested-array.result.js index 73140547..162ca0a2 100644 --- a/tests/fixtures/ecma-version/6/destructuring/params-nested-array.result.js +++ b/tests/fixtures/ecma-version/6/destructuring/params-nested-array.result.js @@ -49,8 +49,8 @@ export default { ], "name": "a" }, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "ArrayPattern", diff --git a/tests/fixtures/ecma-version/6/destructuring/params-nested-object.result.js b/tests/fixtures/ecma-version/6/destructuring/params-nested-object.result.js index da5be14a..cc739813 100644 --- a/tests/fixtures/ecma-version/6/destructuring/params-nested-object.result.js +++ b/tests/fixtures/ecma-version/6/destructuring/params-nested-object.result.js @@ -49,8 +49,8 @@ export default { ], "name": "a" }, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "ObjectPattern", diff --git a/tests/fixtures/ecma-version/6/destructuring/params-object-wrapped.result.js b/tests/fixtures/ecma-version/6/destructuring/params-object-wrapped.result.js index 6f444205..66a062ac 100644 --- a/tests/fixtures/ecma-version/6/destructuring/params-object-wrapped.result.js +++ b/tests/fixtures/ecma-version/6/destructuring/params-object-wrapped.result.js @@ -65,8 +65,8 @@ export default { ], "name": "x" }, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "ObjectPattern", diff --git a/tests/fixtures/ecma-version/6/destructuring/params-object.result.js b/tests/fixtures/ecma-version/6/destructuring/params-object.result.js index c202236d..bc99b5d4 100644 --- a/tests/fixtures/ecma-version/6/destructuring/params-object.result.js +++ b/tests/fixtures/ecma-version/6/destructuring/params-object.result.js @@ -49,8 +49,8 @@ export default { ], "name": "x" }, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "ObjectPattern", diff --git a/tests/fixtures/ecma-version/6/edge-cases/var-let-declaration.result.js b/tests/fixtures/ecma-version/6/edge-cases/var-let-declaration.result.js index e091ba17..42971150 100644 --- a/tests/fixtures/ecma-version/6/edge-cases/var-let-declaration.result.js +++ b/tests/fixtures/ecma-version/6/edge-cases/var-let-declaration.result.js @@ -182,4 +182,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/6/edge-cases/var-let-object.result.js b/tests/fixtures/ecma-version/6/edge-cases/var-let-object.result.js index 399e6f21..4d7ad0e1 100644 --- a/tests/fixtures/ecma-version/6/edge-cases/var-let-object.result.js +++ b/tests/fixtures/ecma-version/6/edge-cases/var-let-object.result.js @@ -288,4 +288,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/6/forOf/for-of-with-function-initializer.result.js b/tests/fixtures/ecma-version/6/forOf/for-of-with-function-initializer.result.js index f0ada429..b2f8b96a 100644 --- a/tests/fixtures/ecma-version/6/forOf/for-of-with-function-initializer.result.js +++ b/tests/fixtures/ecma-version/6/forOf/for-of-with-function-initializer.result.js @@ -1,6 +1,6 @@ export default { - index: 5, - lineNumber: 1, - column: 6, - message: "for-of loop variable declaration may not have an initializer" -}; + "index": 5, + "lineNumber": 1, + "column": 6, + "message": "for-of loop variable declaration may not have an initializer" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/6/generators/anonymous-generator.result.js b/tests/fixtures/ecma-version/6/generators/anonymous-generator.result.js index 401c1f53..d423f14d 100644 --- a/tests/fixtures/ecma-version/6/generators/anonymous-generator.result.js +++ b/tests/fixtures/ecma-version/6/generators/anonymous-generator.result.js @@ -48,8 +48,8 @@ export default { 25 ], "id": null, - "generator": true, "expression": false, + "generator": true, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/generators/double-yield.result.js b/tests/fixtures/ecma-version/6/generators/double-yield.result.js index efdc4c22..591ee669 100644 --- a/tests/fixtures/ecma-version/6/generators/double-yield.result.js +++ b/tests/fixtures/ecma-version/6/generators/double-yield.result.js @@ -48,8 +48,8 @@ export default { 32 ], "id": null, - "generator": true, "expression": false, + "generator": true, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/generators/empty-generator-declaration.result.js b/tests/fixtures/ecma-version/6/generators/empty-generator-declaration.result.js index 1aea2433..d95d65fb 100644 --- a/tests/fixtures/ecma-version/6/generators/empty-generator-declaration.result.js +++ b/tests/fixtures/ecma-version/6/generators/empty-generator-declaration.result.js @@ -49,8 +49,8 @@ export default { ], "name": "t" }, - "generator": true, "expression": false, + "generator": true, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/generators/generator-declaration.result.js b/tests/fixtures/ecma-version/6/generators/generator-declaration.result.js index 693421fc..29e53032 100644 --- a/tests/fixtures/ecma-version/6/generators/generator-declaration.result.js +++ b/tests/fixtures/ecma-version/6/generators/generator-declaration.result.js @@ -49,8 +49,8 @@ export default { ], "name": "test" }, - "generator": true, "expression": false, + "generator": true, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/generators/yield-delegation.result.js b/tests/fixtures/ecma-version/6/generators/yield-delegation.result.js index cca9e02a..bb6c9e38 100644 --- a/tests/fixtures/ecma-version/6/generators/yield-delegation.result.js +++ b/tests/fixtures/ecma-version/6/generators/yield-delegation.result.js @@ -48,8 +48,8 @@ export default { 26 ], "id": null, - "generator": true, "expression": false, + "generator": true, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/generators/yield-without-value-in-call.result.js b/tests/fixtures/ecma-version/6/generators/yield-without-value-in-call.result.js index ec6d5ce4..043a0799 100644 --- a/tests/fixtures/ecma-version/6/generators/yield-without-value-in-call.result.js +++ b/tests/fixtures/ecma-version/6/generators/yield-without-value-in-call.result.js @@ -48,8 +48,8 @@ export default { 28 ], "id": null, - "generator": true, "expression": false, + "generator": true, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/generators/yield-without-value-no-semi.result.js b/tests/fixtures/ecma-version/6/generators/yield-without-value-no-semi.result.js index ed1dfb41..4a0f2be6 100644 --- a/tests/fixtures/ecma-version/6/generators/yield-without-value-no-semi.result.js +++ b/tests/fixtures/ecma-version/6/generators/yield-without-value-no-semi.result.js @@ -48,8 +48,8 @@ export default { 23 ], "id": null, - "generator": true, "expression": false, + "generator": true, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/generators/yield-without-value.result.js b/tests/fixtures/ecma-version/6/generators/yield-without-value.result.js index cd0f07c6..66c05a0c 100644 --- a/tests/fixtures/ecma-version/6/generators/yield-without-value.result.js +++ b/tests/fixtures/ecma-version/6/generators/yield-without-value.result.js @@ -48,8 +48,8 @@ export default { 24 ], "id": null, - "generator": true, "expression": false, + "generator": true, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/modules/export-default-function.result.js b/tests/fixtures/ecma-version/6/modules/export-default-function.result.js index d11b4572..29ebe8a2 100644 --- a/tests/fixtures/ecma-version/6/modules/export-default-function.result.js +++ b/tests/fixtures/ecma-version/6/modules/export-default-function.result.js @@ -48,8 +48,8 @@ export default { 29 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/modules/export-default-named-function.result.js b/tests/fixtures/ecma-version/6/modules/export-default-named-function.result.js index 65a0ce0a..1dd26d83 100644 --- a/tests/fixtures/ecma-version/6/modules/export-default-named-function.result.js +++ b/tests/fixtures/ecma-version/6/modules/export-default-named-function.result.js @@ -65,8 +65,8 @@ export default { ], "name": "foo" }, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/modules/export-default-parenthesized-class.result.js b/tests/fixtures/ecma-version/6/modules/export-default-parenthesized-class.result.js index 951c9311..ff75ca07 100644 --- a/tests/fixtures/ecma-version/6/modules/export-default-parenthesized-class.result.js +++ b/tests/fixtures/ecma-version/6/modules/export-default-parenthesized-class.result.js @@ -1,7 +1,5 @@ export default { "type": "Program", - "start": 0, - "end": 26, "loc": { "start": { "line": 1, @@ -19,8 +17,6 @@ export default { "body": [ { "type": "ExportDefaultDeclaration", - "start": 0, - "end": 26, "loc": { "start": { "line": 1, @@ -37,8 +33,6 @@ export default { ], "declaration": { "type": "ClassExpression", - "start": 16, - "end": 24, "loc": { "start": { "line": 1, @@ -57,8 +51,6 @@ export default { "superClass": null, "body": { "type": "ClassBody", - "start": 22, - "end": 24, "loc": { "start": { "line": 1, @@ -83,8 +75,6 @@ export default { { "type": "Keyword", "value": "export", - "start": 0, - "end": 6, "loc": { "start": { "line": 1, @@ -103,8 +93,6 @@ export default { { "type": "Keyword", "value": "default", - "start": 7, - "end": 14, "loc": { "start": { "line": 1, @@ -123,8 +111,6 @@ export default { { "type": "Punctuator", "value": "(", - "start": 15, - "end": 16, "loc": { "start": { "line": 1, @@ -143,8 +129,6 @@ export default { { "type": "Keyword", "value": "class", - "start": 16, - "end": 21, "loc": { "start": { "line": 1, @@ -163,8 +147,6 @@ export default { { "type": "Punctuator", "value": "{", - "start": 22, - "end": 23, "loc": { "start": { "line": 1, @@ -183,8 +165,6 @@ export default { { "type": "Punctuator", "value": "}", - "start": 23, - "end": 24, "loc": { "start": { "line": 1, @@ -203,8 +183,6 @@ export default { { "type": "Punctuator", "value": ")", - "start": 24, - "end": 25, "loc": { "start": { "line": 1, @@ -223,8 +201,6 @@ export default { { "type": "Punctuator", "value": ";", - "start": 25, - "end": 26, "loc": { "start": { "line": 1, @@ -241,4 +217,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/6/modules/export-default-parenthesized-function.result.js b/tests/fixtures/ecma-version/6/modules/export-default-parenthesized-function.result.js index cbd7a994..e25093fd 100644 --- a/tests/fixtures/ecma-version/6/modules/export-default-parenthesized-function.result.js +++ b/tests/fixtures/ecma-version/6/modules/export-default-parenthesized-function.result.js @@ -1,7 +1,5 @@ export default { "type": "Program", - "start": 0, - "end": 30, "loc": { "start": { "line": 1, @@ -19,8 +17,6 @@ export default { "body": [ { "type": "ExportDefaultDeclaration", - "start": 0, - "end": 30, "loc": { "start": { "line": 1, @@ -37,8 +33,6 @@ export default { ], "declaration": { "type": "FunctionExpression", - "start": 16, - "end": 28, "loc": { "start": { "line": 1, @@ -54,13 +48,11 @@ export default { 28 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", - "start": 26, - "end": 28, "loc": { "start": { "line": 1, @@ -85,8 +77,6 @@ export default { { "type": "Keyword", "value": "export", - "start": 0, - "end": 6, "loc": { "start": { "line": 1, @@ -105,8 +95,6 @@ export default { { "type": "Keyword", "value": "default", - "start": 7, - "end": 14, "loc": { "start": { "line": 1, @@ -125,8 +113,6 @@ export default { { "type": "Punctuator", "value": "(", - "start": 15, - "end": 16, "loc": { "start": { "line": 1, @@ -145,8 +131,6 @@ export default { { "type": "Keyword", "value": "function", - "start": 16, - "end": 24, "loc": { "start": { "line": 1, @@ -165,8 +149,6 @@ export default { { "type": "Punctuator", "value": "(", - "start": 24, - "end": 25, "loc": { "start": { "line": 1, @@ -185,8 +167,6 @@ export default { { "type": "Punctuator", "value": ")", - "start": 25, - "end": 26, "loc": { "start": { "line": 1, @@ -205,8 +185,6 @@ export default { { "type": "Punctuator", "value": "{", - "start": 26, - "end": 27, "loc": { "start": { "line": 1, @@ -225,8 +203,6 @@ export default { { "type": "Punctuator", "value": "}", - "start": 27, - "end": 28, "loc": { "start": { "line": 1, @@ -245,8 +221,6 @@ export default { { "type": "Punctuator", "value": ")", - "start": 28, - "end": 29, "loc": { "start": { "line": 1, @@ -265,8 +239,6 @@ export default { { "type": "Punctuator", "value": ";", - "start": 29, - "end": 30, "loc": { "start": { "line": 1, @@ -283,4 +255,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/6/modules/export-from-default.result.js b/tests/fixtures/ecma-version/6/modules/export-from-default.result.js index 1eb22a76..36172632 100644 --- a/tests/fixtures/ecma-version/6/modules/export-from-default.result.js +++ b/tests/fixtures/ecma-version/6/modules/export-from-default.result.js @@ -147,7 +147,7 @@ export default { ] }, { - "type": "Keyword", + "type": "Identifier", "value": "default", "loc": { "start": { diff --git a/tests/fixtures/ecma-version/6/modules/export-from-named-as-default.result.js b/tests/fixtures/ecma-version/6/modules/export-from-named-as-default.result.js index 2d508f97..7ee7f310 100644 --- a/tests/fixtures/ecma-version/6/modules/export-from-named-as-default.result.js +++ b/tests/fixtures/ecma-version/6/modules/export-from-named-as-default.result.js @@ -183,7 +183,7 @@ export default { ] }, { - "type": "Keyword", + "type": "Identifier", "value": "default", "loc": { "start": { diff --git a/tests/fixtures/ecma-version/6/modules/export-from-named-as-specifiers.result.js b/tests/fixtures/ecma-version/6/modules/export-from-named-as-specifiers.result.js index b8145fb1..5ed135b0 100644 --- a/tests/fixtures/ecma-version/6/modules/export-from-named-as-specifiers.result.js +++ b/tests/fixtures/ecma-version/6/modules/export-from-named-as-specifiers.result.js @@ -236,7 +236,7 @@ export default { ] }, { - "type": "Keyword", + "type": "Identifier", "value": "default", "loc": { "start": { diff --git a/tests/fixtures/ecma-version/6/modules/export-function.result.js b/tests/fixtures/ecma-version/6/modules/export-function.result.js index 0c72a9c5..ddd2ebac 100644 --- a/tests/fixtures/ecma-version/6/modules/export-function.result.js +++ b/tests/fixtures/ecma-version/6/modules/export-function.result.js @@ -65,8 +65,8 @@ export default { ], "name": "foo" }, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/modules/export-named-as-default.result.js b/tests/fixtures/ecma-version/6/modules/export-named-as-default.result.js index 2e547fb3..126b00fd 100644 --- a/tests/fixtures/ecma-version/6/modules/export-named-as-default.result.js +++ b/tests/fixtures/ecma-version/6/modules/export-named-as-default.result.js @@ -1,7 +1,5 @@ export default { "type": "Program", - "start": 0, - "end": 43, "loc": { "start": { "line": 1, @@ -19,8 +17,6 @@ export default { "body": [ { "type": "VariableDeclaration", - "start": 0, - "end": 18, "loc": { "start": { "line": 1, @@ -38,8 +34,6 @@ export default { "declarations": [ { "type": "VariableDeclarator", - "start": 6, - "end": 17, "loc": { "start": { "line": 1, @@ -56,8 +50,6 @@ export default { ], "id": { "type": "Identifier", - "start": 6, - "end": 9, "loc": { "start": { "line": 1, @@ -76,8 +68,6 @@ export default { }, "init": { "type": "Literal", - "start": 12, - "end": 17, "loc": { "start": { "line": 1, @@ -101,8 +91,6 @@ export default { }, { "type": "ExportNamedDeclaration", - "start": 19, - "end": 43, "loc": { "start": { "line": 2, @@ -121,8 +109,6 @@ export default { "specifiers": [ { "type": "ExportSpecifier", - "start": 27, - "end": 41, "loc": { "start": { "line": 2, @@ -139,8 +125,6 @@ export default { ], "local": { "type": "Identifier", - "start": 27, - "end": 30, "loc": { "start": { "line": 2, @@ -159,8 +143,6 @@ export default { }, "exported": { "type": "Identifier", - "start": 34, - "end": 41, "loc": { "start": { "line": 2, @@ -187,8 +169,6 @@ export default { { "type": "Keyword", "value": "const", - "start": 0, - "end": 5, "loc": { "start": { "line": 1, @@ -207,8 +187,6 @@ export default { { "type": "Identifier", "value": "foo", - "start": 6, - "end": 9, "loc": { "start": { "line": 1, @@ -227,8 +205,6 @@ export default { { "type": "Punctuator", "value": "=", - "start": 10, - "end": 11, "loc": { "start": { "line": 1, @@ -247,8 +223,6 @@ export default { { "type": "String", "value": "\"foo\"", - "start": 12, - "end": 17, "loc": { "start": { "line": 1, @@ -267,8 +241,6 @@ export default { { "type": "Punctuator", "value": ";", - "start": 17, - "end": 18, "loc": { "start": { "line": 1, @@ -287,8 +259,6 @@ export default { { "type": "Keyword", "value": "export", - "start": 19, - "end": 25, "loc": { "start": { "line": 2, @@ -307,8 +277,6 @@ export default { { "type": "Punctuator", "value": "{", - "start": 26, - "end": 27, "loc": { "start": { "line": 2, @@ -327,8 +295,6 @@ export default { { "type": "Identifier", "value": "foo", - "start": 27, - "end": 30, "loc": { "start": { "line": 2, @@ -347,8 +313,6 @@ export default { { "type": "Identifier", "value": "as", - "start": 31, - "end": 33, "loc": { "start": { "line": 2, @@ -365,10 +329,8 @@ export default { ] }, { - "type": "Keyword", + "type": "Identifier", "value": "default", - "start": 34, - "end": 41, "loc": { "start": { "line": 2, @@ -387,8 +349,6 @@ export default { { "type": "Punctuator", "value": "}", - "start": 41, - "end": 42, "loc": { "start": { "line": 2, @@ -407,8 +367,6 @@ export default { { "type": "Punctuator", "value": ";", - "start": 42, - "end": 43, "loc": { "start": { "line": 2, @@ -425,4 +383,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/6/modules/export-named-as-specifier.result.js b/tests/fixtures/ecma-version/6/modules/export-named-as-specifier.result.js index f5796ad8..0ea87d9b 100644 --- a/tests/fixtures/ecma-version/6/modules/export-named-as-specifier.result.js +++ b/tests/fixtures/ecma-version/6/modules/export-named-as-specifier.result.js @@ -1,7 +1,5 @@ export default { "type": "Program", - "start": 0, - "end": 39, "loc": { "start": { "line": 1, @@ -19,8 +17,6 @@ export default { "body": [ { "type": "VariableDeclaration", - "start": 0, - "end": 18, "loc": { "start": { "line": 1, @@ -38,8 +34,6 @@ export default { "declarations": [ { "type": "VariableDeclarator", - "start": 6, - "end": 17, "loc": { "start": { "line": 1, @@ -56,8 +50,6 @@ export default { ], "id": { "type": "Identifier", - "start": 6, - "end": 9, "loc": { "start": { "line": 1, @@ -76,8 +68,6 @@ export default { }, "init": { "type": "Literal", - "start": 12, - "end": 17, "loc": { "start": { "line": 1, @@ -101,8 +91,6 @@ export default { }, { "type": "ExportNamedDeclaration", - "start": 19, - "end": 39, "loc": { "start": { "line": 2, @@ -121,8 +109,6 @@ export default { "specifiers": [ { "type": "ExportSpecifier", - "start": 27, - "end": 37, "loc": { "start": { "line": 2, @@ -139,8 +125,6 @@ export default { ], "local": { "type": "Identifier", - "start": 27, - "end": 30, "loc": { "start": { "line": 2, @@ -159,8 +143,6 @@ export default { }, "exported": { "type": "Identifier", - "start": 34, - "end": 37, "loc": { "start": { "line": 2, @@ -187,8 +169,6 @@ export default { { "type": "Keyword", "value": "const", - "start": 0, - "end": 5, "loc": { "start": { "line": 1, @@ -207,8 +187,6 @@ export default { { "type": "Identifier", "value": "foo", - "start": 6, - "end": 9, "loc": { "start": { "line": 1, @@ -227,8 +205,6 @@ export default { { "type": "Punctuator", "value": "=", - "start": 10, - "end": 11, "loc": { "start": { "line": 1, @@ -247,8 +223,6 @@ export default { { "type": "String", "value": "\"foo\"", - "start": 12, - "end": 17, "loc": { "start": { "line": 1, @@ -267,8 +241,6 @@ export default { { "type": "Punctuator", "value": ";", - "start": 17, - "end": 18, "loc": { "start": { "line": 1, @@ -287,8 +259,6 @@ export default { { "type": "Keyword", "value": "export", - "start": 19, - "end": 25, "loc": { "start": { "line": 2, @@ -307,8 +277,6 @@ export default { { "type": "Punctuator", "value": "{", - "start": 26, - "end": 27, "loc": { "start": { "line": 2, @@ -327,8 +295,6 @@ export default { { "type": "Identifier", "value": "foo", - "start": 27, - "end": 30, "loc": { "start": { "line": 2, @@ -347,8 +313,6 @@ export default { { "type": "Identifier", "value": "as", - "start": 31, - "end": 33, "loc": { "start": { "line": 2, @@ -367,8 +331,6 @@ export default { { "type": "Identifier", "value": "bar", - "start": 34, - "end": 37, "loc": { "start": { "line": 2, @@ -387,8 +349,6 @@ export default { { "type": "Punctuator", "value": "}", - "start": 37, - "end": 38, "loc": { "start": { "line": 2, @@ -407,8 +367,6 @@ export default { { "type": "Punctuator", "value": ";", - "start": 38, - "end": 39, "loc": { "start": { "line": 2, @@ -425,4 +383,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/6/modules/export-named-as-specifiers.result.js b/tests/fixtures/ecma-version/6/modules/export-named-as-specifiers.result.js index 198745f0..4989d526 100644 --- a/tests/fixtures/ecma-version/6/modules/export-named-as-specifiers.result.js +++ b/tests/fixtures/ecma-version/6/modules/export-named-as-specifiers.result.js @@ -1,7 +1,5 @@ export default { "type": "Program", - "start": 0, - "end": 65, "loc": { "start": { "line": 1, @@ -19,8 +17,6 @@ export default { "body": [ { "type": "VariableDeclaration", - "start": 0, - "end": 35, "loc": { "start": { "line": 1, @@ -38,8 +34,6 @@ export default { "declarations": [ { "type": "VariableDeclarator", - "start": 6, - "end": 17, "loc": { "start": { "line": 1, @@ -56,8 +50,6 @@ export default { ], "id": { "type": "Identifier", - "start": 6, - "end": 9, "loc": { "start": { "line": 1, @@ -76,8 +68,6 @@ export default { }, "init": { "type": "Literal", - "start": 12, - "end": 17, "loc": { "start": { "line": 1, @@ -98,8 +88,6 @@ export default { }, { "type": "VariableDeclarator", - "start": 23, - "end": 34, "loc": { "start": { "line": 2, @@ -116,8 +104,6 @@ export default { ], "id": { "type": "Identifier", - "start": 23, - "end": 26, "loc": { "start": { "line": 2, @@ -136,8 +122,6 @@ export default { }, "init": { "type": "Literal", - "start": 29, - "end": 34, "loc": { "start": { "line": 2, @@ -161,8 +145,6 @@ export default { }, { "type": "ExportNamedDeclaration", - "start": 36, - "end": 65, "loc": { "start": { "line": 3, @@ -181,8 +163,6 @@ export default { "specifiers": [ { "type": "ExportSpecifier", - "start": 44, - "end": 58, "loc": { "start": { "line": 3, @@ -199,8 +179,6 @@ export default { ], "local": { "type": "Identifier", - "start": 44, - "end": 47, "loc": { "start": { "line": 3, @@ -219,8 +197,6 @@ export default { }, "exported": { "type": "Identifier", - "start": 51, - "end": 58, "loc": { "start": { "line": 3, @@ -240,8 +216,6 @@ export default { }, { "type": "ExportSpecifier", - "start": 60, - "end": 63, "loc": { "start": { "line": 3, @@ -258,8 +232,6 @@ export default { ], "local": { "type": "Identifier", - "start": 60, - "end": 63, "loc": { "start": { "line": 3, @@ -278,8 +250,6 @@ export default { }, "exported": { "type": "Identifier", - "start": 60, - "end": 63, "loc": { "start": { "line": 3, @@ -306,8 +276,6 @@ export default { { "type": "Keyword", "value": "const", - "start": 0, - "end": 5, "loc": { "start": { "line": 1, @@ -326,8 +294,6 @@ export default { { "type": "Identifier", "value": "foo", - "start": 6, - "end": 9, "loc": { "start": { "line": 1, @@ -346,8 +312,6 @@ export default { { "type": "Punctuator", "value": "=", - "start": 10, - "end": 11, "loc": { "start": { "line": 1, @@ -366,8 +330,6 @@ export default { { "type": "String", "value": "\"foo\"", - "start": 12, - "end": 17, "loc": { "start": { "line": 1, @@ -386,8 +348,6 @@ export default { { "type": "Punctuator", "value": ",", - "start": 17, - "end": 18, "loc": { "start": { "line": 1, @@ -406,8 +366,6 @@ export default { { "type": "Identifier", "value": "bar", - "start": 23, - "end": 26, "loc": { "start": { "line": 2, @@ -426,8 +384,6 @@ export default { { "type": "Punctuator", "value": "=", - "start": 27, - "end": 28, "loc": { "start": { "line": 2, @@ -446,8 +402,6 @@ export default { { "type": "String", "value": "\"bar\"", - "start": 29, - "end": 34, "loc": { "start": { "line": 2, @@ -466,8 +420,6 @@ export default { { "type": "Punctuator", "value": ";", - "start": 34, - "end": 35, "loc": { "start": { "line": 2, @@ -486,8 +438,6 @@ export default { { "type": "Keyword", "value": "export", - "start": 36, - "end": 42, "loc": { "start": { "line": 3, @@ -506,8 +456,6 @@ export default { { "type": "Punctuator", "value": "{", - "start": 43, - "end": 44, "loc": { "start": { "line": 3, @@ -526,8 +474,6 @@ export default { { "type": "Identifier", "value": "foo", - "start": 44, - "end": 47, "loc": { "start": { "line": 3, @@ -546,8 +492,6 @@ export default { { "type": "Identifier", "value": "as", - "start": 48, - "end": 50, "loc": { "start": { "line": 3, @@ -564,10 +508,8 @@ export default { ] }, { - "type": "Keyword", + "type": "Identifier", "value": "default", - "start": 51, - "end": 58, "loc": { "start": { "line": 3, @@ -586,8 +528,6 @@ export default { { "type": "Punctuator", "value": ",", - "start": 58, - "end": 59, "loc": { "start": { "line": 3, @@ -606,8 +546,6 @@ export default { { "type": "Identifier", "value": "bar", - "start": 60, - "end": 63, "loc": { "start": { "line": 3, @@ -626,8 +564,6 @@ export default { { "type": "Punctuator", "value": "}", - "start": 63, - "end": 64, "loc": { "start": { "line": 3, @@ -646,8 +582,6 @@ export default { { "type": "Punctuator", "value": ";", - "start": 64, - "end": 65, "loc": { "start": { "line": 3, @@ -664,4 +598,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/6/modules/export-named-specifier.result.js b/tests/fixtures/ecma-version/6/modules/export-named-specifier.result.js index f7dced9b..077d4a96 100644 --- a/tests/fixtures/ecma-version/6/modules/export-named-specifier.result.js +++ b/tests/fixtures/ecma-version/6/modules/export-named-specifier.result.js @@ -1,7 +1,5 @@ export default { "type": "Program", - "start": 0, - "end": 32, "loc": { "start": { "line": 1, @@ -19,8 +17,6 @@ export default { "body": [ { "type": "VariableDeclaration", - "start": 0, - "end": 18, "loc": { "start": { "line": 1, @@ -38,8 +34,6 @@ export default { "declarations": [ { "type": "VariableDeclarator", - "start": 6, - "end": 17, "loc": { "start": { "line": 1, @@ -56,8 +50,6 @@ export default { ], "id": { "type": "Identifier", - "start": 6, - "end": 9, "loc": { "start": { "line": 1, @@ -76,8 +68,6 @@ export default { }, "init": { "type": "Literal", - "start": 12, - "end": 17, "loc": { "start": { "line": 1, @@ -101,8 +91,6 @@ export default { }, { "type": "ExportNamedDeclaration", - "start": 19, - "end": 32, "loc": { "start": { "line": 2, @@ -121,8 +109,6 @@ export default { "specifiers": [ { "type": "ExportSpecifier", - "start": 27, - "end": 30, "loc": { "start": { "line": 2, @@ -139,8 +125,6 @@ export default { ], "local": { "type": "Identifier", - "start": 27, - "end": 30, "loc": { "start": { "line": 2, @@ -159,8 +143,6 @@ export default { }, "exported": { "type": "Identifier", - "start": 27, - "end": 30, "loc": { "start": { "line": 2, @@ -187,8 +169,6 @@ export default { { "type": "Keyword", "value": "const", - "start": 0, - "end": 5, "loc": { "start": { "line": 1, @@ -207,8 +187,6 @@ export default { { "type": "Identifier", "value": "foo", - "start": 6, - "end": 9, "loc": { "start": { "line": 1, @@ -227,8 +205,6 @@ export default { { "type": "Punctuator", "value": "=", - "start": 10, - "end": 11, "loc": { "start": { "line": 1, @@ -247,8 +223,6 @@ export default { { "type": "String", "value": "\"foo\"", - "start": 12, - "end": 17, "loc": { "start": { "line": 1, @@ -267,8 +241,6 @@ export default { { "type": "Punctuator", "value": ";", - "start": 17, - "end": 18, "loc": { "start": { "line": 1, @@ -287,8 +259,6 @@ export default { { "type": "Keyword", "value": "export", - "start": 19, - "end": 25, "loc": { "start": { "line": 2, @@ -307,8 +277,6 @@ export default { { "type": "Punctuator", "value": "{", - "start": 26, - "end": 27, "loc": { "start": { "line": 2, @@ -327,8 +295,6 @@ export default { { "type": "Identifier", "value": "foo", - "start": 27, - "end": 30, "loc": { "start": { "line": 2, @@ -347,8 +313,6 @@ export default { { "type": "Punctuator", "value": "}", - "start": 30, - "end": 31, "loc": { "start": { "line": 2, @@ -367,8 +331,6 @@ export default { { "type": "Punctuator", "value": ";", - "start": 31, - "end": 32, "loc": { "start": { "line": 2, @@ -385,4 +347,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/6/modules/export-named-specifiers-comma.result.js b/tests/fixtures/ecma-version/6/modules/export-named-specifiers-comma.result.js index 50f58d81..4de3fcf6 100644 --- a/tests/fixtures/ecma-version/6/modules/export-named-specifiers-comma.result.js +++ b/tests/fixtures/ecma-version/6/modules/export-named-specifiers-comma.result.js @@ -1,7 +1,5 @@ export default { "type": "Program", - "start": 0, - "end": 55, "loc": { "start": { "line": 1, @@ -19,8 +17,6 @@ export default { "body": [ { "type": "VariableDeclaration", - "start": 0, - "end": 35, "loc": { "start": { "line": 1, @@ -38,8 +34,6 @@ export default { "declarations": [ { "type": "VariableDeclarator", - "start": 6, - "end": 17, "loc": { "start": { "line": 1, @@ -56,8 +50,6 @@ export default { ], "id": { "type": "Identifier", - "start": 6, - "end": 9, "loc": { "start": { "line": 1, @@ -76,8 +68,6 @@ export default { }, "init": { "type": "Literal", - "start": 12, - "end": 17, "loc": { "start": { "line": 1, @@ -98,8 +88,6 @@ export default { }, { "type": "VariableDeclarator", - "start": 23, - "end": 34, "loc": { "start": { "line": 2, @@ -116,8 +104,6 @@ export default { ], "id": { "type": "Identifier", - "start": 23, - "end": 26, "loc": { "start": { "line": 2, @@ -136,8 +122,6 @@ export default { }, "init": { "type": "Literal", - "start": 29, - "end": 34, "loc": { "start": { "line": 2, @@ -161,8 +145,6 @@ export default { }, { "type": "ExportNamedDeclaration", - "start": 36, - "end": 55, "loc": { "start": { "line": 3, @@ -181,8 +163,6 @@ export default { "specifiers": [ { "type": "ExportSpecifier", - "start": 44, - "end": 47, "loc": { "start": { "line": 3, @@ -199,8 +179,6 @@ export default { ], "local": { "type": "Identifier", - "start": 44, - "end": 47, "loc": { "start": { "line": 3, @@ -219,8 +197,6 @@ export default { }, "exported": { "type": "Identifier", - "start": 44, - "end": 47, "loc": { "start": { "line": 3, @@ -240,8 +216,6 @@ export default { }, { "type": "ExportSpecifier", - "start": 49, - "end": 52, "loc": { "start": { "line": 3, @@ -258,8 +232,6 @@ export default { ], "local": { "type": "Identifier", - "start": 49, - "end": 52, "loc": { "start": { "line": 3, @@ -278,8 +250,6 @@ export default { }, "exported": { "type": "Identifier", - "start": 49, - "end": 52, "loc": { "start": { "line": 3, @@ -306,8 +276,6 @@ export default { { "type": "Keyword", "value": "const", - "start": 0, - "end": 5, "loc": { "start": { "line": 1, @@ -326,8 +294,6 @@ export default { { "type": "Identifier", "value": "foo", - "start": 6, - "end": 9, "loc": { "start": { "line": 1, @@ -346,8 +312,6 @@ export default { { "type": "Punctuator", "value": "=", - "start": 10, - "end": 11, "loc": { "start": { "line": 1, @@ -366,8 +330,6 @@ export default { { "type": "String", "value": "\"foo\"", - "start": 12, - "end": 17, "loc": { "start": { "line": 1, @@ -386,8 +348,6 @@ export default { { "type": "Punctuator", "value": ",", - "start": 17, - "end": 18, "loc": { "start": { "line": 1, @@ -406,8 +366,6 @@ export default { { "type": "Identifier", "value": "bar", - "start": 23, - "end": 26, "loc": { "start": { "line": 2, @@ -426,8 +384,6 @@ export default { { "type": "Punctuator", "value": "=", - "start": 27, - "end": 28, "loc": { "start": { "line": 2, @@ -446,8 +402,6 @@ export default { { "type": "String", "value": "\"bar\"", - "start": 29, - "end": 34, "loc": { "start": { "line": 2, @@ -466,8 +420,6 @@ export default { { "type": "Punctuator", "value": ";", - "start": 34, - "end": 35, "loc": { "start": { "line": 2, @@ -486,8 +438,6 @@ export default { { "type": "Keyword", "value": "export", - "start": 36, - "end": 42, "loc": { "start": { "line": 3, @@ -506,8 +456,6 @@ export default { { "type": "Punctuator", "value": "{", - "start": 43, - "end": 44, "loc": { "start": { "line": 3, @@ -526,8 +474,6 @@ export default { { "type": "Identifier", "value": "foo", - "start": 44, - "end": 47, "loc": { "start": { "line": 3, @@ -546,8 +492,6 @@ export default { { "type": "Punctuator", "value": ",", - "start": 47, - "end": 48, "loc": { "start": { "line": 3, @@ -566,8 +510,6 @@ export default { { "type": "Identifier", "value": "bar", - "start": 49, - "end": 52, "loc": { "start": { "line": 3, @@ -586,8 +528,6 @@ export default { { "type": "Punctuator", "value": ",", - "start": 52, - "end": 53, "loc": { "start": { "line": 3, @@ -606,8 +546,6 @@ export default { { "type": "Punctuator", "value": "}", - "start": 53, - "end": 54, "loc": { "start": { "line": 3, @@ -626,8 +564,6 @@ export default { { "type": "Punctuator", "value": ";", - "start": 54, - "end": 55, "loc": { "start": { "line": 3, @@ -644,4 +580,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/6/modules/export-named-specifiers.result.js b/tests/fixtures/ecma-version/6/modules/export-named-specifiers.result.js index 45e2296c..eba23f90 100644 --- a/tests/fixtures/ecma-version/6/modules/export-named-specifiers.result.js +++ b/tests/fixtures/ecma-version/6/modules/export-named-specifiers.result.js @@ -1,7 +1,5 @@ export default { "type": "Program", - "start": 0, - "end": 54, "loc": { "start": { "line": 1, @@ -19,8 +17,6 @@ export default { "body": [ { "type": "VariableDeclaration", - "start": 0, - "end": 35, "loc": { "start": { "line": 1, @@ -38,8 +34,6 @@ export default { "declarations": [ { "type": "VariableDeclarator", - "start": 6, - "end": 17, "loc": { "start": { "line": 1, @@ -56,8 +50,6 @@ export default { ], "id": { "type": "Identifier", - "start": 6, - "end": 9, "loc": { "start": { "line": 1, @@ -76,8 +68,6 @@ export default { }, "init": { "type": "Literal", - "start": 12, - "end": 17, "loc": { "start": { "line": 1, @@ -98,8 +88,6 @@ export default { }, { "type": "VariableDeclarator", - "start": 23, - "end": 34, "loc": { "start": { "line": 2, @@ -116,8 +104,6 @@ export default { ], "id": { "type": "Identifier", - "start": 23, - "end": 26, "loc": { "start": { "line": 2, @@ -136,8 +122,6 @@ export default { }, "init": { "type": "Literal", - "start": 29, - "end": 34, "loc": { "start": { "line": 2, @@ -161,8 +145,6 @@ export default { }, { "type": "ExportNamedDeclaration", - "start": 36, - "end": 54, "loc": { "start": { "line": 3, @@ -181,8 +163,6 @@ export default { "specifiers": [ { "type": "ExportSpecifier", - "start": 44, - "end": 47, "loc": { "start": { "line": 3, @@ -199,8 +179,6 @@ export default { ], "local": { "type": "Identifier", - "start": 44, - "end": 47, "loc": { "start": { "line": 3, @@ -219,8 +197,6 @@ export default { }, "exported": { "type": "Identifier", - "start": 44, - "end": 47, "loc": { "start": { "line": 3, @@ -240,8 +216,6 @@ export default { }, { "type": "ExportSpecifier", - "start": 49, - "end": 52, "loc": { "start": { "line": 3, @@ -258,8 +232,6 @@ export default { ], "local": { "type": "Identifier", - "start": 49, - "end": 52, "loc": { "start": { "line": 3, @@ -278,8 +250,6 @@ export default { }, "exported": { "type": "Identifier", - "start": 49, - "end": 52, "loc": { "start": { "line": 3, @@ -306,8 +276,6 @@ export default { { "type": "Keyword", "value": "const", - "start": 0, - "end": 5, "loc": { "start": { "line": 1, @@ -326,8 +294,6 @@ export default { { "type": "Identifier", "value": "foo", - "start": 6, - "end": 9, "loc": { "start": { "line": 1, @@ -346,8 +312,6 @@ export default { { "type": "Punctuator", "value": "=", - "start": 10, - "end": 11, "loc": { "start": { "line": 1, @@ -366,8 +330,6 @@ export default { { "type": "String", "value": "\"foo\"", - "start": 12, - "end": 17, "loc": { "start": { "line": 1, @@ -386,8 +348,6 @@ export default { { "type": "Punctuator", "value": ",", - "start": 17, - "end": 18, "loc": { "start": { "line": 1, @@ -406,8 +366,6 @@ export default { { "type": "Identifier", "value": "bar", - "start": 23, - "end": 26, "loc": { "start": { "line": 2, @@ -426,8 +384,6 @@ export default { { "type": "Punctuator", "value": "=", - "start": 27, - "end": 28, "loc": { "start": { "line": 2, @@ -446,8 +402,6 @@ export default { { "type": "String", "value": "\"bar\"", - "start": 29, - "end": 34, "loc": { "start": { "line": 2, @@ -466,8 +420,6 @@ export default { { "type": "Punctuator", "value": ";", - "start": 34, - "end": 35, "loc": { "start": { "line": 2, @@ -486,8 +438,6 @@ export default { { "type": "Keyword", "value": "export", - "start": 36, - "end": 42, "loc": { "start": { "line": 3, @@ -506,8 +456,6 @@ export default { { "type": "Punctuator", "value": "{", - "start": 43, - "end": 44, "loc": { "start": { "line": 3, @@ -526,8 +474,6 @@ export default { { "type": "Identifier", "value": "foo", - "start": 44, - "end": 47, "loc": { "start": { "line": 3, @@ -546,8 +492,6 @@ export default { { "type": "Punctuator", "value": ",", - "start": 47, - "end": 48, "loc": { "start": { "line": 3, @@ -566,8 +510,6 @@ export default { { "type": "Identifier", "value": "bar", - "start": 49, - "end": 52, "loc": { "start": { "line": 3, @@ -586,8 +528,6 @@ export default { { "type": "Punctuator", "value": "}", - "start": 52, - "end": 53, "loc": { "start": { "line": 3, @@ -606,8 +546,6 @@ export default { { "type": "Punctuator", "value": ";", - "start": 53, - "end": 54, "loc": { "start": { "line": 3, @@ -624,4 +562,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/6/modules/export-var-anonymous-function.result.js b/tests/fixtures/ecma-version/6/modules/export-var-anonymous-function.result.js index ccb47d67..a94d3745 100644 --- a/tests/fixtures/ecma-version/6/modules/export-var-anonymous-function.result.js +++ b/tests/fixtures/ecma-version/6/modules/export-var-anonymous-function.result.js @@ -99,8 +99,8 @@ export default { 31 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/modules/import-default-as.result.js b/tests/fixtures/ecma-version/6/modules/import-default-as.result.js index 7708f002..2836c771 100644 --- a/tests/fixtures/ecma-version/6/modules/import-default-as.result.js +++ b/tests/fixtures/ecma-version/6/modules/import-default-as.result.js @@ -146,7 +146,7 @@ export default { ] }, { - "type": "Keyword", + "type": "Identifier", "value": "default", "loc": { "start": { diff --git a/tests/fixtures/ecma-version/6/modules/import-named-as-specifier-keyword.result.js b/tests/fixtures/ecma-version/6/modules/import-named-as-specifier-keyword.result.js index e32c34b6..cc2f913e 100644 --- a/tests/fixtures/ecma-version/6/modules/import-named-as-specifier-keyword.result.js +++ b/tests/fixtures/ecma-version/6/modules/import-named-as-specifier-keyword.result.js @@ -146,7 +146,7 @@ export default { ] }, { - "type": "Keyword", + "type": "Identifier", "value": "var", "loc": { "start": { diff --git a/tests/fixtures/ecma-version/6/modules/import-null-as-nil.result.js b/tests/fixtures/ecma-version/6/modules/import-null-as-nil.result.js index 85d92e54..07bc5a42 100644 --- a/tests/fixtures/ecma-version/6/modules/import-null-as-nil.result.js +++ b/tests/fixtures/ecma-version/6/modules/import-null-as-nil.result.js @@ -146,7 +146,7 @@ export default { ] }, { - "type": "Null", + "type": "Identifier", "value": "null", "loc": { "start": { 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 adea2015..190a234c 100644 --- a/tests/fixtures/ecma-version/6/modules/invalid-await.result.js +++ b/tests/fixtures/ecma-version/6/modules/invalid-await.result.js @@ -3,4 +3,4 @@ export default { "lineNumber": 1, "column": 12, "message": "Cannot use keyword 'await' outside an async function" -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/6/modules/invalid-export-default-token.result.js b/tests/fixtures/ecma-version/6/modules/invalid-export-default-token.result.js index 568f331b..a118da62 100644 --- a/tests/fixtures/ecma-version/6/modules/invalid-export-default-token.result.js +++ b/tests/fixtures/ecma-version/6/modules/invalid-export-default-token.result.js @@ -3,4 +3,4 @@ export default { "lineNumber": 1, "column": 9, "message": "Unexpected keyword 'default'" -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/6/modules/invalid-export-named-default.result.js b/tests/fixtures/ecma-version/6/modules/invalid-export-named-default.result.js index 568f331b..a118da62 100644 --- a/tests/fixtures/ecma-version/6/modules/invalid-export-named-default.result.js +++ b/tests/fixtures/ecma-version/6/modules/invalid-export-named-default.result.js @@ -3,4 +3,4 @@ export default { "lineNumber": 1, "column": 9, "message": "Unexpected keyword 'default'" -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/6/modules/invalid-import-named-as-keyword.result.js b/tests/fixtures/ecma-version/6/modules/invalid-import-named-as-keyword.result.js index 5eba812e..7c886807 100644 --- a/tests/fixtures/ecma-version/6/modules/invalid-import-named-as-keyword.result.js +++ b/tests/fixtures/ecma-version/6/modules/invalid-import-named-as-keyword.result.js @@ -3,4 +3,4 @@ export default { "lineNumber": 1, "column": 16, "message": "Unexpected keyword 'var'" -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/6/modules/invalid-import-named-keyword.result.js b/tests/fixtures/ecma-version/6/modules/invalid-import-named-keyword.result.js index 4236b8a4..f1163382 100644 --- a/tests/fixtures/ecma-version/6/modules/invalid-import-named-keyword.result.js +++ b/tests/fixtures/ecma-version/6/modules/invalid-import-named-keyword.result.js @@ -3,4 +3,4 @@ export default { "lineNumber": 1, "column": 9, "message": "Unexpected keyword 'var'" -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/6/modules/valid-await.result.js b/tests/fixtures/ecma-version/6/modules/valid-await.result.js index e3fbfd4e..af16d957 100644 --- a/tests/fixtures/ecma-version/6/modules/valid-await.result.js +++ b/tests/fixtures/ecma-version/6/modules/valid-await.result.js @@ -87,7 +87,7 @@ export default { } } ], - "sourceType": "script", + "sourceType": "module", "tokens": [ { "type": "Identifier", diff --git a/tests/fixtures/ecma-version/6/newTarget/invalid-new-target.result.js b/tests/fixtures/ecma-version/6/newTarget/invalid-new-target.result.js index a1144dc9..3c22bcb1 100644 --- a/tests/fixtures/ecma-version/6/newTarget/invalid-new-target.result.js +++ b/tests/fixtures/ecma-version/6/newTarget/invalid-new-target.result.js @@ -3,4 +3,4 @@ export default { "lineNumber": 1, "column": 9, "message": "'new.target' can only be used in functions and class static block" -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/6/newTarget/invalid-unknown-property.result.js b/tests/fixtures/ecma-version/6/newTarget/invalid-unknown-property.result.js index 82d12668..60fd23ba 100644 --- a/tests/fixtures/ecma-version/6/newTarget/invalid-unknown-property.result.js +++ b/tests/fixtures/ecma-version/6/newTarget/invalid-unknown-property.result.js @@ -3,4 +3,4 @@ export default { "lineNumber": 1, "column": 26, "message": "The only valid meta property for new is 'new.target'" -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/6/newTarget/simple-new-target.result.js b/tests/fixtures/ecma-version/6/newTarget/simple-new-target.result.js index 00a09cd4..77ce9dfc 100644 --- a/tests/fixtures/ecma-version/6/newTarget/simple-new-target.result.js +++ b/tests/fixtures/ecma-version/6/newTarget/simple-new-target.result.js @@ -1,421 +1,3 @@ export default { - "type": "Program", - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 3, - "column": 1 - } - }, - "range": [ - 0, - 40 - ], - "body": [ - { - "type": "FunctionDeclaration", - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 3, - "column": 1 - } - }, - "range": [ - 0, - 40 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 10 - } - }, - "range": [ - 9, - 10 - ], - "name": "f" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "loc": { - "start": { - "line": 1, - "column": 13 - }, - "end": { - "line": 3, - "column": 1 - } - }, - "range": [ - 13, - 40 - ], - "body": [ - { - "type": "VariableDeclaration", - "loc": { - "start": { - "line": 2, - "column": 4 - }, - "end": { - "line": 2, - "column": 23 - } - }, - "range": [ - 19, - 38 - ], - "declarations": [ - { - "type": "VariableDeclarator", - "loc": { - "start": { - "line": 2, - "column": 8 - }, - "end": { - "line": 2, - "column": 22 - } - }, - "range": [ - 23, - 37 - ], - "id": { - "type": "Identifier", - "loc": { - "start": { - "line": 2, - "column": 8 - }, - "end": { - "line": 2, - "column": 9 - } - }, - "range": [ - 23, - 24 - ], - "name": "x" - }, - "init": { - "type": "MetaProperty", - "loc": { - "start": { - "line": 2, - "column": 12 - }, - "end": { - "line": 2, - "column": 22 - } - }, - "range": [ - 27, - 37 - ], - "meta": { - "type": "Identifier", - "loc": { - "start": { - "line": 2, - "column": 12 - }, - "end": { - "line": 2, - "column": 15 - } - }, - "range": [ - 27, - 30 - ], - "name": "new" - }, - "property": { - "type": "Identifier", - "loc": { - "start": { - "line": 2, - "column": 16 - }, - "end": { - "line": 2, - "column": 22 - } - }, - "range": [ - 31, - 37 - ], - "name": "target" - } - } - } - ], - "kind": "var" - } - ] - } - } - ], - "sourceType": "script", - "tokens": [ - { - "type": "Keyword", - "value": "function", - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 8 - } - }, - "range": [ - 0, - 8 - ] - }, - { - "type": "Identifier", - "value": "f", - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 10 - } - }, - "range": [ - 9, - 10 - ] - }, - { - "type": "Punctuator", - "value": "(", - "loc": { - "start": { - "line": 1, - "column": 10 - }, - "end": { - "line": 1, - "column": 11 - } - }, - "range": [ - 10, - 11 - ] - }, - { - "type": "Punctuator", - "value": ")", - "loc": { - "start": { - "line": 1, - "column": 11 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "range": [ - 11, - 12 - ] - }, - { - "type": "Punctuator", - "value": "{", - "loc": { - "start": { - "line": 1, - "column": 13 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "range": [ - 13, - 14 - ] - }, - { - "type": "Keyword", - "value": "var", - "loc": { - "start": { - "line": 2, - "column": 4 - }, - "end": { - "line": 2, - "column": 7 - } - }, - "range": [ - 19, - 22 - ] - }, - { - "type": "Identifier", - "value": "x", - "loc": { - "start": { - "line": 2, - "column": 8 - }, - "end": { - "line": 2, - "column": 9 - } - }, - "range": [ - 23, - 24 - ] - }, - { - "type": "Punctuator", - "value": "=", - "loc": { - "start": { - "line": 2, - "column": 10 - }, - "end": { - "line": 2, - "column": 11 - } - }, - "range": [ - 25, - 26 - ] - }, - { - "type": "Keyword", - "value": "new", - "loc": { - "start": { - "line": 2, - "column": 12 - }, - "end": { - "line": 2, - "column": 15 - } - }, - "range": [ - 27, - 30 - ] - }, - { - "type": "Punctuator", - "value": ".", - "loc": { - "start": { - "line": 2, - "column": 15 - }, - "end": { - "line": 2, - "column": 16 - } - }, - "range": [ - 30, - 31 - ] - }, - { - "type": "Identifier", - "value": "target", - "loc": { - "start": { - "line": 2, - "column": 16 - }, - "end": { - "line": 2, - "column": 22 - } - }, - "range": [ - 31, - 37 - ] - }, - { - "type": "Punctuator", - "value": ";", - "loc": { - "start": { - "line": 2, - "column": 22 - }, - "end": { - "line": 2, - "column": 23 - } - }, - "range": [ - 37, - 38 - ] - }, - { - "type": "Punctuator", - "value": "}", - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 1 - } - }, - "range": [ - 39, - 40 - ] - } - ] + "message": "AST cannot have undefined as a property value.\nProperty name is 'start'" }; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/6/newTarget/simple-new-target.src.js b/tests/fixtures/ecma-version/6/newTarget/simple-new-target.src.js index 44b77c7a..122fea0b 100644 --- a/tests/fixtures/ecma-version/6/newTarget/simple-new-target.src.js +++ b/tests/fixtures/ecma-version/6/newTarget/simple-new-target.src.js @@ -1,3 +1 @@ -function f() { - var x = new.target; -} +function f() {var x = new.target;} diff --git a/tests/fixtures/ecma-version/6/objectLiteralComputedProperties/computed-getter-and-setter.result.js b/tests/fixtures/ecma-version/6/objectLiteralComputedProperties/computed-getter-and-setter.result.js index f080f507..1e9cf46a 100644 --- a/tests/fixtures/ecma-version/6/objectLiteralComputedProperties/computed-getter-and-setter.result.js +++ b/tests/fixtures/ecma-version/6/objectLiteralComputedProperties/computed-getter-and-setter.result.js @@ -103,8 +103,8 @@ export default { 14 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", @@ -181,8 +181,8 @@ export default { 29 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "Identifier", diff --git a/tests/fixtures/ecma-version/6/objectLiteralComputedProperties/standalone-expression-with-method.result.js b/tests/fixtures/ecma-version/6/objectLiteralComputedProperties/standalone-expression-with-method.result.js index 324fd2c3..c95aa6e5 100644 --- a/tests/fixtures/ecma-version/6/objectLiteralComputedProperties/standalone-expression-with-method.result.js +++ b/tests/fixtures/ecma-version/6/objectLiteralComputedProperties/standalone-expression-with-method.result.js @@ -102,8 +102,8 @@ export default { 20 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/objectLiteralDuplicateProperties-and-objectLiteralComputedProperties/proto-computed-property.result.js b/tests/fixtures/ecma-version/6/objectLiteralDuplicateProperties-and-objectLiteralComputedProperties/proto-computed-property.result.js index 6ccd177d..09e89828 100644 --- a/tests/fixtures/ecma-version/6/objectLiteralDuplicateProperties-and-objectLiteralComputedProperties/proto-computed-property.result.js +++ b/tests/fixtures/ecma-version/6/objectLiteralDuplicateProperties-and-objectLiteralComputedProperties/proto-computed-property.result.js @@ -31,7 +31,6 @@ export default { 0, 13 ], - "directive": "use strict", "expression": { "type": "Literal", "loc": { @@ -50,7 +49,8 @@ export default { ], "value": "use strict", "raw": "\"use strict\"" - } + }, + "directive": "use strict" }, { "type": "VariableDeclaration", @@ -1081,4 +1081,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/6/objectLiteralDuplicateProperties/strict-duplicate-properties.result.js b/tests/fixtures/ecma-version/6/objectLiteralDuplicateProperties/strict-duplicate-properties.result.js index e2ae5f72..9c50b9e1 100644 --- a/tests/fixtures/ecma-version/6/objectLiteralDuplicateProperties/strict-duplicate-properties.result.js +++ b/tests/fixtures/ecma-version/6/objectLiteralDuplicateProperties/strict-duplicate-properties.result.js @@ -31,7 +31,6 @@ export default { 0, 13 ], - "directive": "use strict", "expression": { "type": "Literal", "loc": { @@ -50,7 +49,8 @@ export default { ], "value": "use strict", "raw": "\"use strict\"" - } + }, + "directive": "use strict" }, { "type": "VariableDeclaration", @@ -516,4 +516,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/6/objectLiteralDuplicateProperties/strict-duplicate-string-properties.result.js b/tests/fixtures/ecma-version/6/objectLiteralDuplicateProperties/strict-duplicate-string-properties.result.js index 2173aa83..3fdfe60f 100644 --- a/tests/fixtures/ecma-version/6/objectLiteralDuplicateProperties/strict-duplicate-string-properties.result.js +++ b/tests/fixtures/ecma-version/6/objectLiteralDuplicateProperties/strict-duplicate-string-properties.result.js @@ -31,7 +31,6 @@ export default { 0, 13 ], - "directive": "use strict", "expression": { "type": "Literal", "loc": { @@ -50,7 +49,8 @@ export default { ], "value": "use strict", "raw": "\"use strict\"" - } + }, + "directive": "use strict" }, { "type": "VariableDeclaration", @@ -518,4 +518,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods-and-defaultParams/default-params.result.js b/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods-and-defaultParams/default-params.result.js index 22275472..2e6afa33 100644 --- a/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods-and-defaultParams/default-params.result.js +++ b/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods-and-defaultParams/default-params.result.js @@ -31,7 +31,6 @@ export default { 0, 13 ], - "directive": "use strict", "expression": { "type": "Literal", "loc": { @@ -50,7 +49,8 @@ export default { ], "value": "use strict", "raw": "\"use strict\"" - } + }, + "directive": "use strict" }, { "type": "VariableDeclaration", @@ -175,8 +175,8 @@ export default { 40 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "AssignmentPattern", @@ -308,8 +308,8 @@ export default { 60 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "Identifier", @@ -459,8 +459,8 @@ export default { 85 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "Identifier", @@ -1303,4 +1303,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods-and-destructuring/array-destructuring.result.js b/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods-and-destructuring/array-destructuring.result.js index 042d6960..f1ad39cb 100644 --- a/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods-and-destructuring/array-destructuring.result.js +++ b/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods-and-destructuring/array-destructuring.result.js @@ -103,8 +103,8 @@ export default { 16 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "ArrayPattern", diff --git a/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods-and-generators/generator-object-literal-method.result.js b/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods-and-generators/generator-object-literal-method.result.js index 771dacf9..10f97e35 100644 --- a/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods-and-generators/generator-object-literal-method.result.js +++ b/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods-and-generators/generator-object-literal-method.result.js @@ -138,8 +138,8 @@ export default { 31 ], "id": null, - "generator": true, "expression": false, + "generator": true, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods-and-objectLiteralComputedProperties/computed-method-property.result.js b/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods-and-objectLiteralComputedProperties/computed-method-property.result.js index 25a55fc9..184f1ccf 100644 --- a/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods-and-objectLiteralComputedProperties/computed-method-property.result.js +++ b/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods-and-objectLiteralComputedProperties/computed-method-property.result.js @@ -138,8 +138,8 @@ export default { 49 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods/method-property.result.js b/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods/method-property.result.js index 6fca8f00..8ac96646 100644 --- a/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods/method-property.result.js +++ b/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods/method-property.result.js @@ -138,8 +138,8 @@ export default { 47 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods/simple-method-named-get.result.js b/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods/simple-method-named-get.result.js index d17cd289..77fdf3f6 100644 --- a/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods/simple-method-named-get.result.js +++ b/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods/simple-method-named-get.result.js @@ -138,8 +138,8 @@ export default { 23 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods/simple-method-named-set.result.js b/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods/simple-method-named-set.result.js index e1cb44f5..20ccd8f5 100644 --- a/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods/simple-method-named-set.result.js +++ b/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods/simple-method-named-set.result.js @@ -138,8 +138,8 @@ export default { 23 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods/simple-method-with-argument.result.js b/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods/simple-method-with-argument.result.js index b9bd17e4..7fab047e 100644 --- a/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods/simple-method-with-argument.result.js +++ b/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods/simple-method-with-argument.result.js @@ -138,8 +138,8 @@ export default { 31 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "Identifier", diff --git a/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods/simple-method-with-string-name.result.js b/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods/simple-method-with-string-name.result.js index 40a21b47..40c18005 100644 --- a/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods/simple-method-with-string-name.result.js +++ b/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods/simple-method-with-string-name.result.js @@ -139,8 +139,8 @@ export default { 28 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods/simple-method.result.js b/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods/simple-method.result.js index 68ff0331..e6467ef8 100644 --- a/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods/simple-method.result.js +++ b/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods/simple-method.result.js @@ -138,8 +138,8 @@ export default { 26 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods/string-name-method-property.result.js b/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods/string-name-method-property.result.js index 76b0dbd9..a7f16146 100644 --- a/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods/string-name-method-property.result.js +++ b/tests/fixtures/ecma-version/6/objectLiteralShorthandMethods/string-name-method-property.result.js @@ -139,8 +139,8 @@ export default { 49 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/objectLiteralShorthandProperties/shorthand-properties-keyword.result.js b/tests/fixtures/ecma-version/6/objectLiteralShorthandProperties/shorthand-properties-keyword.result.js index 492ef9d0..f33c8ff5 100644 --- a/tests/fixtures/ecma-version/6/objectLiteralShorthandProperties/shorthand-properties-keyword.result.js +++ b/tests/fixtures/ecma-version/6/objectLiteralShorthandProperties/shorthand-properties-keyword.result.js @@ -3,4 +3,4 @@ export default { "lineNumber": 2, "column": 5, "message": "Unexpected keyword 'this'" -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/6/octalLiterals/strict-uppercase.result.js b/tests/fixtures/ecma-version/6/octalLiterals/strict-uppercase.result.js index d1324e33..a3453ffa 100644 --- a/tests/fixtures/ecma-version/6/octalLiterals/strict-uppercase.result.js +++ b/tests/fixtures/ecma-version/6/octalLiterals/strict-uppercase.result.js @@ -31,7 +31,6 @@ export default { 0, 13 ], - "directive": "use strict", "expression": { "type": "Literal", "loc": { @@ -50,7 +49,8 @@ export default { ], "value": "use strict", "raw": "\"use strict\"" - } + }, + "directive": "use strict" }, { "type": "ExpressionStatement", @@ -164,4 +164,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/6/regexUFlag/regex-u-extended-escape.result.js b/tests/fixtures/ecma-version/6/regexUFlag/regex-u-extended-escape.result.js index 7686eed7..f51e913f 100644 --- a/tests/fixtures/ecma-version/6/regexUFlag/regex-u-extended-escape.result.js +++ b/tests/fixtures/ecma-version/6/regexUFlag/regex-u-extended-escape.result.js @@ -1,5 +1,3 @@ -import conditionalRegex from "../../../../lib/conditional-regex-value.js"; - export default { "type": "Program", "loc": { @@ -68,7 +66,7 @@ export default { ], "name": "x" }, - "init": conditionalRegex({ + "init": { "type": "Literal", "loc": { "start": { @@ -84,13 +82,13 @@ export default { 8, 40 ], - "value": null, + "value": /[\u{0000000000000061}-\u{7A}]/u, "raw": "/[\\u{0000000000000061}-\\u{7A}]/u", "regex": { "pattern": "[\\u{0000000000000061}-\\u{7A}]", "flags": "u" } - }) + } } ], "kind": "var" diff --git a/tests/fixtures/ecma-version/6/regexUFlag/regex-u-invalid-extended-escape.result.js b/tests/fixtures/ecma-version/6/regexUFlag/regex-u-invalid-extended-escape.result.js index ad40fbf3..280bf3a6 100644 --- a/tests/fixtures/ecma-version/6/regexUFlag/regex-u-invalid-extended-escape.result.js +++ b/tests/fixtures/ecma-version/6/regexUFlag/regex-u-invalid-extended-escape.result.js @@ -3,4 +3,4 @@ export default { "lineNumber": 1, "column": 10, "message": "Invalid regular expression: /\\u{110000}/: Invalid unicode escape" -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/6/regexUFlag/regex-u-simple.result.js b/tests/fixtures/ecma-version/6/regexUFlag/regex-u-simple.result.js index 54fde7cb..c8f2f2b8 100644 --- a/tests/fixtures/ecma-version/6/regexUFlag/regex-u-simple.result.js +++ b/tests/fixtures/ecma-version/6/regexUFlag/regex-u-simple.result.js @@ -1,5 +1,3 @@ -import conditionalRegex from "../../../../lib/conditional-regex-value.js"; - export default { "type": "Program", "loc": { @@ -68,7 +66,7 @@ export default { ], "name": "foo" }, - "init": conditionalRegex({ + "init": { "type": "Literal", "loc": { "start": { @@ -84,13 +82,13 @@ export default { 10, 16 ], - "value": null, + "value": /foo/u, "raw": "/foo/u", "regex": { "pattern": "foo", "flags": "u" } - }) + } } ], "kind": "var" diff --git a/tests/fixtures/ecma-version/6/regexYFlag/regexp-y-simple.result.js b/tests/fixtures/ecma-version/6/regexYFlag/regexp-y-simple.result.js index 88668c13..8f6ba8b3 100644 --- a/tests/fixtures/ecma-version/6/regexYFlag/regexp-y-simple.result.js +++ b/tests/fixtures/ecma-version/6/regexYFlag/regexp-y-simple.result.js @@ -1,5 +1,3 @@ -import conditionalRegex from "../../../../lib/conditional-regex-value.js"; - export default { "type": "Program", "loc": { @@ -68,7 +66,7 @@ export default { ], "name": "foo" }, - "init": conditionalRegex({ + "init": { "type": "Literal", "loc": { "start": { @@ -84,13 +82,13 @@ export default { 10, 16 ], - "value": null, + "value": /foo/y, "raw": "/foo/y", "regex": { "pattern": "foo", "flags": "y" } - }) + } } ], "kind": "var" diff --git a/tests/fixtures/ecma-version/6/restParams-and-arrowFunctions/arrow-rest-multi.result.js b/tests/fixtures/ecma-version/6/restParams-and-arrowFunctions/arrow-rest-multi.result.js index 375b9772..fe4d34ca 100644 --- a/tests/fixtures/ecma-version/6/restParams-and-arrowFunctions/arrow-rest-multi.result.js +++ b/tests/fixtures/ecma-version/6/restParams-and-arrowFunctions/arrow-rest-multi.result.js @@ -48,8 +48,8 @@ export default { 15 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "Identifier", diff --git a/tests/fixtures/ecma-version/6/restParams-and-arrowFunctions/arrow-rest.result.js b/tests/fixtures/ecma-version/6/restParams-and-arrowFunctions/arrow-rest.result.js index 78ffff6b..752a71a2 100644 --- a/tests/fixtures/ecma-version/6/restParams-and-arrowFunctions/arrow-rest.result.js +++ b/tests/fixtures/ecma-version/6/restParams-and-arrowFunctions/arrow-rest.result.js @@ -48,8 +48,8 @@ export default { 12 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "RestElement", diff --git a/tests/fixtures/ecma-version/6/restParams-and-arrowFunctions/destructured-arrow-array.result.js b/tests/fixtures/ecma-version/6/restParams-and-arrowFunctions/destructured-arrow-array.result.js index eb802136..fff4313b 100644 --- a/tests/fixtures/ecma-version/6/restParams-and-arrowFunctions/destructured-arrow-array.result.js +++ b/tests/fixtures/ecma-version/6/restParams-and-arrowFunctions/destructured-arrow-array.result.js @@ -48,8 +48,8 @@ export default { 19 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "ObjectPattern", diff --git a/tests/fixtures/ecma-version/6/restParams-and-arrowFunctions/destructured-arrow-multi.result.js b/tests/fixtures/ecma-version/6/restParams-and-arrowFunctions/destructured-arrow-multi.result.js index 91e4818d..7e741cc3 100644 --- a/tests/fixtures/ecma-version/6/restParams-and-arrowFunctions/destructured-arrow-multi.result.js +++ b/tests/fixtures/ecma-version/6/restParams-and-arrowFunctions/destructured-arrow-multi.result.js @@ -48,8 +48,8 @@ export default { 33 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "ObjectPattern", diff --git a/tests/fixtures/ecma-version/6/restParams-and-arrowFunctions/destructured-arrow-object.result.js b/tests/fixtures/ecma-version/6/restParams-and-arrowFunctions/destructured-arrow-object.result.js index c9601c49..2a2ef53c 100644 --- a/tests/fixtures/ecma-version/6/restParams-and-arrowFunctions/destructured-arrow-object.result.js +++ b/tests/fixtures/ecma-version/6/restParams-and-arrowFunctions/destructured-arrow-object.result.js @@ -48,8 +48,8 @@ export default { 27 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "ObjectPattern", diff --git a/tests/fixtures/ecma-version/6/restParams/basic-rest.result.js b/tests/fixtures/ecma-version/6/restParams/basic-rest.result.js index c3863832..e7d8ec26 100644 --- a/tests/fixtures/ecma-version/6/restParams/basic-rest.result.js +++ b/tests/fixtures/ecma-version/6/restParams/basic-rest.result.js @@ -49,8 +49,8 @@ export default { ], "name": "f" }, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "Identifier", diff --git a/tests/fixtures/ecma-version/6/restParams/func-expression-multi.result.js b/tests/fixtures/ecma-version/6/restParams/func-expression-multi.result.js index a04027d0..47591af5 100644 --- a/tests/fixtures/ecma-version/6/restParams/func-expression-multi.result.js +++ b/tests/fixtures/ecma-version/6/restParams/func-expression-multi.result.js @@ -83,8 +83,8 @@ export default { 28 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "Identifier", diff --git a/tests/fixtures/ecma-version/6/restParams/func-expression.result.js b/tests/fixtures/ecma-version/6/restParams/func-expression.result.js index eef086e1..94f78467 100644 --- a/tests/fixtures/ecma-version/6/restParams/func-expression.result.js +++ b/tests/fixtures/ecma-version/6/restParams/func-expression.result.js @@ -83,8 +83,8 @@ export default { 26 ], "id": null, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "RestElement", diff --git a/tests/fixtures/ecma-version/6/restParams/single-rest.result.js b/tests/fixtures/ecma-version/6/restParams/single-rest.result.js index 7ecf12cc..a540609c 100644 --- a/tests/fixtures/ecma-version/6/restParams/single-rest.result.js +++ b/tests/fixtures/ecma-version/6/restParams/single-rest.result.js @@ -49,8 +49,8 @@ export default { ], "name": "f" }, - "generator": false, "expression": false, + "generator": false, "params": [ { "type": "RestElement", diff --git a/tests/fixtures/ecma-version/6/templateStrings/octal-literal.result.js b/tests/fixtures/ecma-version/6/templateStrings/octal-literal.result.js index e2ce2912..110721df 100644 --- a/tests/fixtures/ecma-version/6/templateStrings/octal-literal.result.js +++ b/tests/fixtures/ecma-version/6/templateStrings/octal-literal.result.js @@ -3,4 +3,4 @@ export default { "lineNumber": 1, "column": 2, "message": "Octal literal in template string" -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/6/templateStrings/tagged-template-string.result.js b/tests/fixtures/ecma-version/6/templateStrings/tagged-template-string.result.js index d422dbb6..df00b7d7 100644 --- a/tests/fixtures/ecma-version/6/templateStrings/tagged-template-string.result.js +++ b/tests/fixtures/ecma-version/6/templateStrings/tagged-template-string.result.js @@ -49,8 +49,8 @@ export default { ], "name": "tag" }, - "generator": false, "expression": false, + "generator": false, "params": [], "body": { "type": "BlockStatement", diff --git a/tests/fixtures/ecma-version/6/unicodeCodePointEscapes/basic-string-literal.result.js b/tests/fixtures/ecma-version/6/unicodeCodePointEscapes/basic-string-literal.result.js index 588fb205..7fc1df89 100644 --- a/tests/fixtures/ecma-version/6/unicodeCodePointEscapes/basic-string-literal.result.js +++ b/tests/fixtures/ecma-version/6/unicodeCodePointEscapes/basic-string-literal.result.js @@ -31,7 +31,6 @@ export default { 0, 19 ], - "directive": "\\u{714E}\\u{8336}", "expression": { "type": "Literal", "loc": { @@ -50,7 +49,8 @@ export default { ], "value": "煎茶", "raw": "\"\\u{714E}\\u{8336}\"" - } + }, + "directive": "\\u{714E}\\u{8336}" } ], "sourceType": "script", @@ -92,4 +92,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/6/unicodeCodePointEscapes/complex-string-literal.result.js b/tests/fixtures/ecma-version/6/unicodeCodePointEscapes/complex-string-literal.result.js index 2903c6c2..98bbc82f 100644 --- a/tests/fixtures/ecma-version/6/unicodeCodePointEscapes/complex-string-literal.result.js +++ b/tests/fixtures/ecma-version/6/unicodeCodePointEscapes/complex-string-literal.result.js @@ -31,7 +31,6 @@ export default { 0, 27 ], - "directive": "\\u{20BB7}\\u{10FFFF}\\u{1}", "expression": { "type": "Literal", "loc": { @@ -50,7 +49,8 @@ export default { ], "value": "𠮷􏿿\u0001", "raw": "\"\\u{20BB7}\\u{10FFFF}\\u{1}\"" - } + }, + "directive": "\\u{20BB7}\\u{10FFFF}\\u{1}" } ], "sourceType": "script", @@ -92,4 +92,4 @@ export default { ] } ] -}; +}; \ No newline at end of file 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 00f4ca1e..8c7b1e1f 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 @@ -3,4 +3,4 @@ export default { "lineNumber": 1, "column": 1, "message": "Illegal 'use strict' directive in function with non-simple parameter list" -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/7/exponential-plusplus.result.js b/tests/fixtures/ecma-version/7/exponential-plusplus.result.js index c485c4ef..d8681504 100644 --- a/tests/fixtures/ecma-version/7/exponential-plusplus.result.js +++ b/tests/fixtures/ecma-version/7/exponential-plusplus.result.js @@ -200,4 +200,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/7/exponential-precedence.result.js b/tests/fixtures/ecma-version/7/exponential-precedence.result.js index 73edd33d..932542fe 100644 --- a/tests/fixtures/ecma-version/7/exponential-precedence.result.js +++ b/tests/fixtures/ecma-version/7/exponential-precedence.result.js @@ -237,4 +237,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/7/exponential-simple.result.js b/tests/fixtures/ecma-version/7/exponential-simple.result.js index 8e80cf25..75a357d9 100644 --- a/tests/fixtures/ecma-version/7/exponential-simple.result.js +++ b/tests/fixtures/ecma-version/7/exponential-simple.result.js @@ -164,4 +164,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/comma-dangle-arrow.result.js b/tests/fixtures/ecma-version/8/comma-dangle-arrow.result.js index 3821b514..1f6688c9 100644 --- a/tests/fixtures/ecma-version/8/comma-dangle-arrow.result.js +++ b/tests/fixtures/ecma-version/8/comma-dangle-arrow.result.js @@ -83,8 +83,8 @@ export default { 23 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": false, "params": [ { @@ -385,4 +385,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/comma-dangle-class-method.result.js b/tests/fixtures/ecma-version/8/comma-dangle-class-method.result.js index 080f8f88..2f693189 100644 --- a/tests/fixtures/ecma-version/8/comma-dangle-class-method.result.js +++ b/tests/fixtures/ecma-version/8/comma-dangle-class-method.result.js @@ -83,6 +83,7 @@ export default { 10, 23 ], + "static": false, "computed": false, "key": { "type": "Identifier", @@ -102,7 +103,6 @@ export default { ], "name": "foo" }, - "static": false, "kind": "method", "value": { "type": "FunctionExpression", @@ -121,8 +121,8 @@ export default { 23 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": false, "params": [ { @@ -458,4 +458,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/comma-dangle-expression.result.js b/tests/fixtures/ecma-version/8/comma-dangle-expression.result.js index c86612d2..8002ffad 100644 --- a/tests/fixtures/ecma-version/8/comma-dangle-expression.result.js +++ b/tests/fixtures/ecma-version/8/comma-dangle-expression.result.js @@ -83,8 +83,8 @@ export default { 28 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": false, "params": [ { @@ -385,4 +385,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/comma-dangle-func.result.js b/tests/fixtures/ecma-version/8/comma-dangle-func.result.js index fa111378..d4eca17d 100644 --- a/tests/fixtures/ecma-version/8/comma-dangle-func.result.js +++ b/tests/fixtures/ecma-version/8/comma-dangle-func.result.js @@ -253,4 +253,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/comma-dangle-method.result.js b/tests/fixtures/ecma-version/8/comma-dangle-method.result.js index c863aad7..ec2d67b4 100644 --- a/tests/fixtures/ecma-version/8/comma-dangle-method.result.js +++ b/tests/fixtures/ecma-version/8/comma-dangle-method.result.js @@ -138,8 +138,8 @@ export default { 23 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": false, "params": [ { @@ -479,4 +479,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/comma-dangle.result.js b/tests/fixtures/ecma-version/8/comma-dangle.result.js index c1c01045..45939717 100644 --- a/tests/fixtures/ecma-version/8/comma-dangle.result.js +++ b/tests/fixtures/ecma-version/8/comma-dangle.result.js @@ -49,8 +49,8 @@ export default { ], "name": "foo" }, - "generator": false, "expression": false, + "generator": false, "async": false, "params": [ { @@ -328,4 +328,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/destructuring-param.result.js b/tests/fixtures/ecma-version/8/destructuring-param.result.js index 105a450c..21dba65e 100644 --- a/tests/fixtures/ecma-version/8/destructuring-param.result.js +++ b/tests/fixtures/ecma-version/8/destructuring-param.result.js @@ -49,8 +49,8 @@ export default { ], "name": "a" }, - "generator": false, "expression": false, + "generator": false, "async": false, "params": [ { @@ -509,4 +509,4 @@ export default { ] } ] -} +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/invalid-comma-dangle-method.result.js b/tests/fixtures/ecma-version/8/invalid-comma-dangle-method.result.js index e80fa967..e786d882 100644 --- a/tests/fixtures/ecma-version/8/invalid-comma-dangle-method.result.js +++ b/tests/fixtures/ecma-version/8/invalid-comma-dangle-method.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token {", - "column": 14, "index": 13, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 14, + "message": "Unexpected token {" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/arrow-func-parens.result.js b/tests/fixtures/ecma-version/8/modules/arrow-func-parens.result.js index ae948baa..e9842217 100644 --- a/tests/fixtures/ecma-version/8/modules/arrow-func-parens.result.js +++ b/tests/fixtures/ecma-version/8/modules/arrow-func-parens.result.js @@ -48,8 +48,8 @@ export default { 8 ], "id": null, - "generator": false, "expression": true, + "generator": false, "async": false, "params": [ { @@ -203,4 +203,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/arrow-func.result.js b/tests/fixtures/ecma-version/8/modules/arrow-func.result.js index 50da2f19..29f5af1d 100644 --- a/tests/fixtures/ecma-version/8/modules/arrow-func.result.js +++ b/tests/fixtures/ecma-version/8/modules/arrow-func.result.js @@ -48,8 +48,8 @@ export default { 6 ], "id": null, - "generator": false, "expression": true, + "generator": false, "async": false, "params": [ { @@ -167,4 +167,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/async-and-no-async.result.js b/tests/fixtures/ecma-version/8/modules/async-and-no-async.result.js index c25cc0be..4d6bcf10 100644 --- a/tests/fixtures/ecma-version/8/modules/async-and-no-async.result.js +++ b/tests/fixtures/ecma-version/8/modules/async-and-no-async.result.js @@ -84,8 +84,8 @@ export default { ], "name": "foo" }, - "generator": false, "expression": false, + "generator": false, "async": false, "params": [], "body": { @@ -272,4 +272,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/async-arrow-func-destructed-defaults.result.js b/tests/fixtures/ecma-version/8/modules/async-arrow-func-destructed-defaults.result.js index d0c9ce6a..dc0e03a3 100644 --- a/tests/fixtures/ecma-version/8/modules/async-arrow-func-destructed-defaults.result.js +++ b/tests/fixtures/ecma-version/8/modules/async-arrow-func-destructed-defaults.result.js @@ -48,8 +48,8 @@ export default { 23 ], "id": null, - "generator": false, "expression": true, + "generator": false, "async": true, "params": [ { @@ -422,4 +422,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/async-arrow-func-destructed.result.js b/tests/fixtures/ecma-version/8/modules/async-arrow-func-destructed.result.js index eb732a70..28eb78fe 100644 --- a/tests/fixtures/ecma-version/8/modules/async-arrow-func-destructed.result.js +++ b/tests/fixtures/ecma-version/8/modules/async-arrow-func-destructed.result.js @@ -48,8 +48,8 @@ export default { 20 ], "id": null, - "generator": false, "expression": true, + "generator": false, "async": true, "params": [ { @@ -386,4 +386,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/async-arrow-func-parens-multi.result.js b/tests/fixtures/ecma-version/8/modules/async-arrow-func-parens-multi.result.js index b5088ce0..c1f5fa1b 100644 --- a/tests/fixtures/ecma-version/8/modules/async-arrow-func-parens-multi.result.js +++ b/tests/fixtures/ecma-version/8/modules/async-arrow-func-parens-multi.result.js @@ -48,8 +48,8 @@ export default { 17 ], "id": null, - "generator": false, "expression": true, + "generator": false, "async": true, "params": [ { @@ -275,4 +275,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/async-arrow-func-parens.result.js b/tests/fixtures/ecma-version/8/modules/async-arrow-func-parens.result.js index 6c3b58e0..753bda33 100644 --- a/tests/fixtures/ecma-version/8/modules/async-arrow-func-parens.result.js +++ b/tests/fixtures/ecma-version/8/modules/async-arrow-func-parens.result.js @@ -65,8 +65,8 @@ export default { ], "name": "foo" }, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [ { @@ -399,4 +399,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/async-arrow-func.result.js b/tests/fixtures/ecma-version/8/modules/async-arrow-func.result.js index 37227a5d..5f279733 100644 --- a/tests/fixtures/ecma-version/8/modules/async-arrow-func.result.js +++ b/tests/fixtures/ecma-version/8/modules/async-arrow-func.result.js @@ -48,8 +48,8 @@ export default { 12 ], "id": null, - "generator": false, "expression": true, + "generator": false, "async": true, "params": [ { @@ -185,4 +185,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/async-await-arrow-expression.result.js b/tests/fixtures/ecma-version/8/modules/async-await-arrow-expression.result.js index 996053cb..b6031f96 100644 --- a/tests/fixtures/ecma-version/8/modules/async-await-arrow-expression.result.js +++ b/tests/fixtures/ecma-version/8/modules/async-await-arrow-expression.result.js @@ -48,8 +48,8 @@ export default { 21 ], "id": null, - "generator": false, "expression": true, + "generator": false, "async": true, "params": [ { @@ -292,4 +292,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/async-await-arrow-param.result.js b/tests/fixtures/ecma-version/8/modules/async-await-arrow-param.result.js index b81debdb..45a42708 100644 --- a/tests/fixtures/ecma-version/8/modules/async-await-arrow-param.result.js +++ b/tests/fixtures/ecma-version/8/modules/async-await-arrow-param.result.js @@ -49,8 +49,8 @@ export default { ], "name": "foo" }, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [ { @@ -104,8 +104,8 @@ export default { 42 ], "id": null, - "generator": false, "expression": true, + "generator": false, "async": true, "params": [], "body": { @@ -474,4 +474,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/async-await-class-method-param.result.js b/tests/fixtures/ecma-version/8/modules/async-await-class-method-param.result.js index 535b6aef..d2da4a2c 100644 --- a/tests/fixtures/ecma-version/8/modules/async-await-class-method-param.result.js +++ b/tests/fixtures/ecma-version/8/modules/async-await-class-method-param.result.js @@ -49,8 +49,8 @@ export default { ], "name": "foo" }, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [ { @@ -138,6 +138,7 @@ export default { 30, 53 ], + "static": false, "computed": false, "key": { "type": "Identifier", @@ -157,7 +158,6 @@ export default { ], "name": "bar" }, - "static": false, "kind": "method", "value": { "type": "FunctionExpression", @@ -176,8 +176,8 @@ export default { 53 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -676,4 +676,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/async-await-destructured-default.result.js b/tests/fixtures/ecma-version/8/modules/async-await-destructured-default.result.js index b4b9e319..cd5991e5 100644 --- a/tests/fixtures/ecma-version/8/modules/async-await-destructured-default.result.js +++ b/tests/fixtures/ecma-version/8/modules/async-await-destructured-default.result.js @@ -49,8 +49,8 @@ export default { ], "name": "wrap" }, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -599,4 +599,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/async-await-expression-class-method.result.js b/tests/fixtures/ecma-version/8/modules/async-await-expression-class-method.result.js index d0ea9ea4..a319b2d6 100644 --- a/tests/fixtures/ecma-version/8/modules/async-await-expression-class-method.result.js +++ b/tests/fixtures/ecma-version/8/modules/async-await-expression-class-method.result.js @@ -82,6 +82,7 @@ export default { 8, 32 ], + "static": false, "computed": false, "key": { "type": "Identifier", @@ -101,7 +102,6 @@ export default { ], "name": "foo" }, - "static": false, "kind": "method", "value": { "type": "FunctionExpression", @@ -120,8 +120,8 @@ export default { 32 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [ { @@ -494,4 +494,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/async-await-function-param.result.js b/tests/fixtures/ecma-version/8/modules/async-await-function-param.result.js index 66f078ca..fa4b8667 100644 --- a/tests/fixtures/ecma-version/8/modules/async-await-function-param.result.js +++ b/tests/fixtures/ecma-version/8/modules/async-await-function-param.result.js @@ -49,8 +49,8 @@ export default { ], "name": "foo" }, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [ { @@ -121,8 +121,8 @@ export default { ], "name": "foo" }, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -581,4 +581,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/async-await-identifier-math.result.js b/tests/fixtures/ecma-version/8/modules/async-await-identifier-math.result.js index cb12cac3..932478b2 100644 --- a/tests/fixtures/ecma-version/8/modules/async-await-identifier-math.result.js +++ b/tests/fixtures/ecma-version/8/modules/async-await-identifier-math.result.js @@ -49,8 +49,8 @@ export default { ], "name": "foo" }, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -364,4 +364,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/async-await-inside-parens.result.js b/tests/fixtures/ecma-version/8/modules/async-await-inside-parens.result.js index b9e148ad..506dd025 100644 --- a/tests/fixtures/ecma-version/8/modules/async-await-inside-parens.result.js +++ b/tests/fixtures/ecma-version/8/modules/async-await-inside-parens.result.js @@ -49,8 +49,8 @@ export default { ], "name": "wrap" }, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -434,4 +434,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/async-await-math.result.js b/tests/fixtures/ecma-version/8/modules/async-await-math.result.js index 4e07db55..807ddebf 100644 --- a/tests/fixtures/ecma-version/8/modules/async-await-math.result.js +++ b/tests/fixtures/ecma-version/8/modules/async-await-math.result.js @@ -49,8 +49,8 @@ export default { ], "name": "foo" }, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [ { @@ -524,4 +524,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/async-await-named-object-method.result.js b/tests/fixtures/ecma-version/8/modules/async-await-named-object-method.result.js index 68de1ec9..80d75035 100644 --- a/tests/fixtures/ecma-version/8/modules/async-await-named-object-method.result.js +++ b/tests/fixtures/ecma-version/8/modules/async-await-named-object-method.result.js @@ -103,8 +103,8 @@ export default { 19 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -332,4 +332,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/async-await-object-method-param.result.js b/tests/fixtures/ecma-version/8/modules/async-await-object-method-param.result.js index 84ba17b1..e9d6cf04 100644 --- a/tests/fixtures/ecma-version/8/modules/async-await-object-method-param.result.js +++ b/tests/fixtures/ecma-version/8/modules/async-await-object-method-param.result.js @@ -49,8 +49,8 @@ export default { ], "name": "foo" }, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [ { @@ -159,8 +159,8 @@ export default { 47 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -640,4 +640,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/async-await-object-method.result.js b/tests/fixtures/ecma-version/8/modules/async-await-object-method.result.js index 47f5919f..59459091 100644 --- a/tests/fixtures/ecma-version/8/modules/async-await-object-method.result.js +++ b/tests/fixtures/ecma-version/8/modules/async-await-object-method.result.js @@ -103,8 +103,8 @@ export default { 26 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [ { @@ -458,4 +458,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/async-await.result.js b/tests/fixtures/ecma-version/8/modules/async-await.result.js index 90f5efb1..d0104b5c 100644 --- a/tests/fixtures/ecma-version/8/modules/async-await.result.js +++ b/tests/fixtures/ecma-version/8/modules/async-await.result.js @@ -49,8 +49,8 @@ export default { ], "name": "foo" }, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [ { @@ -417,4 +417,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/async-class-method-named-await.result.js b/tests/fixtures/ecma-version/8/modules/async-class-method-named-await.result.js index 264ac7b7..7f35ece2 100644 --- a/tests/fixtures/ecma-version/8/modules/async-class-method-named-await.result.js +++ b/tests/fixtures/ecma-version/8/modules/async-class-method-named-await.result.js @@ -83,6 +83,7 @@ export default { 9, 26 ], + "static": false, "computed": false, "key": { "type": "Identifier", @@ -102,7 +103,6 @@ export default { ], "name": "await" }, - "static": false, "kind": "method", "value": { "type": "FunctionExpression", @@ -121,8 +121,8 @@ export default { 26 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -367,4 +367,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/async-class-method.result.js b/tests/fixtures/ecma-version/8/modules/async-class-method.result.js index 80826b3f..4c568773 100644 --- a/tests/fixtures/ecma-version/8/modules/async-class-method.result.js +++ b/tests/fixtures/ecma-version/8/modules/async-class-method.result.js @@ -83,6 +83,7 @@ export default { 9, 24 ], + "static": false, "computed": false, "key": { "type": "Identifier", @@ -102,7 +103,6 @@ export default { ], "name": "foo" }, - "static": false, "kind": "method", "value": { "type": "FunctionExpression", @@ -121,8 +121,8 @@ export default { 24 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -367,4 +367,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/async-destructured-assignment.result.js b/tests/fixtures/ecma-version/8/modules/async-destructured-assignment.result.js index 550106bf..99d8b54e 100644 --- a/tests/fixtures/ecma-version/8/modules/async-destructured-assignment.result.js +++ b/tests/fixtures/ecma-version/8/modules/async-destructured-assignment.result.js @@ -383,4 +383,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/async-expression.result.js b/tests/fixtures/ecma-version/8/modules/async-expression.result.js index d17b8943..8e0022cb 100644 --- a/tests/fixtures/ecma-version/8/modules/async-expression.result.js +++ b/tests/fixtures/ecma-version/8/modules/async-expression.result.js @@ -65,8 +65,8 @@ export default { ], "name": "foo" }, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -273,4 +273,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file 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 3ebb74e3..46397737 100644 --- a/tests/fixtures/ecma-version/8/modules/async-func.result.js +++ b/tests/fixtures/ecma-version/8/modules/async-func.result.js @@ -1,6 +1,6 @@ export default { - "message": "Cannot use keyword 'await' outside an async function", - "column": 8, "index": 7, - "lineNumber": 1 -}; + "lineNumber": 1, + "column": 8, + "message": "Cannot use keyword 'await' outside an async function" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/async-named-class-method.result.js b/tests/fixtures/ecma-version/8/modules/async-named-class-method.result.js index 9a3824ca..b61b8658 100644 --- a/tests/fixtures/ecma-version/8/modules/async-named-class-method.result.js +++ b/tests/fixtures/ecma-version/8/modules/async-named-class-method.result.js @@ -83,6 +83,7 @@ export default { 9, 20 ], + "static": false, "computed": false, "key": { "type": "Identifier", @@ -102,7 +103,6 @@ export default { ], "name": "async" }, - "static": false, "kind": "method", "value": { "type": "FunctionExpression", @@ -121,8 +121,8 @@ export default { 20 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": false, "params": [], "body": { @@ -349,4 +349,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/async-named-generator-method.result.js b/tests/fixtures/ecma-version/8/modules/async-named-generator-method.result.js index f4b28a2b..962adcf1 100644 --- a/tests/fixtures/ecma-version/8/modules/async-named-generator-method.result.js +++ b/tests/fixtures/ecma-version/8/modules/async-named-generator-method.result.js @@ -83,6 +83,7 @@ export default { 9, 21 ], + "static": false, "computed": false, "key": { "type": "Identifier", @@ -102,7 +103,6 @@ export default { ], "name": "async" }, - "static": false, "kind": "method", "value": { "type": "FunctionExpression", @@ -121,8 +121,8 @@ export default { 21 ], "id": null, - "generator": true, "expression": false, + "generator": true, "async": false, "params": [], "body": { @@ -367,4 +367,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/async-named-object-method.result.js b/tests/fixtures/ecma-version/8/modules/async-named-object-method.result.js index 04f58ffc..46483e6e 100644 --- a/tests/fixtures/ecma-version/8/modules/async-named-object-method.result.js +++ b/tests/fixtures/ecma-version/8/modules/async-named-object-method.result.js @@ -103,8 +103,8 @@ export default { 13 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": false, "params": [], "body": { @@ -314,4 +314,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/async-named-static-generator-method.result.js b/tests/fixtures/ecma-version/8/modules/async-named-static-generator-method.result.js index 389b3c6f..a1b9a7f9 100644 --- a/tests/fixtures/ecma-version/8/modules/async-named-static-generator-method.result.js +++ b/tests/fixtures/ecma-version/8/modules/async-named-static-generator-method.result.js @@ -83,6 +83,7 @@ export default { 9, 28 ], + "static": true, "computed": false, "key": { "type": "Identifier", @@ -102,7 +103,6 @@ export default { ], "name": "async" }, - "static": true, "kind": "method", "value": { "type": "FunctionExpression", @@ -121,8 +121,8 @@ export default { 28 ], "id": null, - "generator": true, "expression": false, + "generator": true, "async": false, "params": [], "body": { @@ -385,4 +385,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/async-object-method-keyword.result.js b/tests/fixtures/ecma-version/8/modules/async-object-method-keyword.result.js index d17114a9..3136d449 100644 --- a/tests/fixtures/ecma-version/8/modules/async-object-method-keyword.result.js +++ b/tests/fixtures/ecma-version/8/modules/async-object-method-keyword.result.js @@ -103,8 +103,8 @@ export default { 20 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -188,7 +188,7 @@ export default { ] }, { - "type": "Keyword", + "type": "Identifier", "value": "delete", "loc": { "start": { @@ -332,4 +332,4 @@ export default { ] } ] -} +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/async-object-method.result.js b/tests/fixtures/ecma-version/8/modules/async-object-method.result.js index 037cac43..a7ff8582 100644 --- a/tests/fixtures/ecma-version/8/modules/async-object-method.result.js +++ b/tests/fixtures/ecma-version/8/modules/async-object-method.result.js @@ -103,8 +103,8 @@ export default { 17 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -332,4 +332,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/async-static-class-method-named-await.result.js b/tests/fixtures/ecma-version/8/modules/async-static-class-method-named-await.result.js index fe891d3c..1ebb197b 100644 --- a/tests/fixtures/ecma-version/8/modules/async-static-class-method-named-await.result.js +++ b/tests/fixtures/ecma-version/8/modules/async-static-class-method-named-await.result.js @@ -83,6 +83,7 @@ export default { 9, 33 ], + "static": true, "computed": false, "key": { "type": "Identifier", @@ -102,7 +103,6 @@ export default { ], "name": "await" }, - "static": true, "kind": "method", "value": { "type": "FunctionExpression", @@ -121,8 +121,8 @@ export default { 33 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -385,4 +385,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/async-static-class-method.result.js b/tests/fixtures/ecma-version/8/modules/async-static-class-method.result.js index 89d9bf23..0d9a721a 100644 --- a/tests/fixtures/ecma-version/8/modules/async-static-class-method.result.js +++ b/tests/fixtures/ecma-version/8/modules/async-static-class-method.result.js @@ -83,6 +83,7 @@ export default { 9, 31 ], + "static": true, "computed": false, "key": { "type": "Identifier", @@ -102,7 +103,6 @@ export default { ], "name": "foo" }, - "static": true, "kind": "method", "value": { "type": "FunctionExpression", @@ -121,8 +121,8 @@ export default { 31 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -385,4 +385,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/async-then-arrow.result.js b/tests/fixtures/ecma-version/8/modules/async-then-arrow.result.js index fa869426..3e8fad0f 100644 --- a/tests/fixtures/ecma-version/8/modules/async-then-arrow.result.js +++ b/tests/fixtures/ecma-version/8/modules/async-then-arrow.result.js @@ -83,8 +83,8 @@ export default { 12 ], "id": null, - "generator": false, "expression": true, + "generator": false, "async": false, "params": [ { @@ -220,4 +220,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/async-wrapped-class-await.result.js b/tests/fixtures/ecma-version/8/modules/async-wrapped-class-await.result.js index c8986fa7..0739f75a 100644 --- a/tests/fixtures/ecma-version/8/modules/async-wrapped-class-await.result.js +++ b/tests/fixtures/ecma-version/8/modules/async-wrapped-class-await.result.js @@ -49,8 +49,8 @@ export default { ], "name": "wrap" }, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -138,6 +138,7 @@ export default { 35, 52 ], + "static": false, "computed": false, "key": { "type": "Identifier", @@ -157,7 +158,6 @@ export default { ], "name": "await" }, - "static": false, "kind": "method", "value": { "type": "FunctionExpression", @@ -176,8 +176,8 @@ export default { 52 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -551,4 +551,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/async-yield.result.js b/tests/fixtures/ecma-version/8/modules/async-yield.result.js index 8b4cf1c5..f6f57d55 100644 --- a/tests/fixtures/ecma-version/8/modules/async-yield.result.js +++ b/tests/fixtures/ecma-version/8/modules/async-yield.result.js @@ -1,6 +1,6 @@ export default { - "message": "The keyword 'yield' is reserved", - "column": 7, "index": 6, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 7, + "message": "The keyword 'yield' is reserved" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/async.result.js b/tests/fixtures/ecma-version/8/modules/async.result.js index 1f349d66..336e8ca2 100644 --- a/tests/fixtures/ecma-version/8/modules/async.result.js +++ b/tests/fixtures/ecma-version/8/modules/async.result.js @@ -49,8 +49,8 @@ export default { ], "name": "foo" }, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -237,4 +237,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file 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 07d2f472..c5b283df 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,6 +1,6 @@ export default { - "message": "Cannot use keyword 'await' outside an async function", - "column": 18, "index": 17, - "lineNumber": 1 -}; + "lineNumber": 1, + "column": 18, + "message": "Cannot use keyword 'await' outside an async function" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/class-method.result.js b/tests/fixtures/ecma-version/8/modules/class-method.result.js index 91441760..b1afbf1d 100644 --- a/tests/fixtures/ecma-version/8/modules/class-method.result.js +++ b/tests/fixtures/ecma-version/8/modules/class-method.result.js @@ -83,6 +83,7 @@ export default { 9, 18 ], + "static": false, "computed": false, "key": { "type": "Identifier", @@ -102,7 +103,6 @@ export default { ], "name": "foo" }, - "static": false, "kind": "method", "value": { "type": "FunctionExpression", @@ -121,8 +121,8 @@ export default { 18 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": false, "params": [], "body": { @@ -349,4 +349,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/export-async.result.js b/tests/fixtures/ecma-version/8/modules/export-async.result.js index b0198061..71625311 100644 --- a/tests/fixtures/ecma-version/8/modules/export-async.result.js +++ b/tests/fixtures/ecma-version/8/modules/export-async.result.js @@ -65,8 +65,8 @@ export default { ], "name": "foo" }, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -274,4 +274,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/export-default-async-expression.result.js b/tests/fixtures/ecma-version/8/modules/export-default-async-expression.result.js index a431a426..92da75fd 100644 --- a/tests/fixtures/ecma-version/8/modules/export-default-async-expression.result.js +++ b/tests/fixtures/ecma-version/8/modules/export-default-async-expression.result.js @@ -48,8 +48,8 @@ export default { 36 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -274,4 +274,4 @@ export default { ] } ] -} +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/export-default-async.result.js b/tests/fixtures/ecma-version/8/modules/export-default-async.result.js index 4a3ba33e..04558d07 100644 --- a/tests/fixtures/ecma-version/8/modules/export-default-async.result.js +++ b/tests/fixtures/ecma-version/8/modules/export-default-async.result.js @@ -48,8 +48,8 @@ export default { 35 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -255,4 +255,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/generator-async-func.result.js b/tests/fixtures/ecma-version/8/modules/generator-async-func.result.js index 80f22912..41186329 100644 --- a/tests/fixtures/ecma-version/8/modules/generator-async-func.result.js +++ b/tests/fixtures/ecma-version/8/modules/generator-async-func.result.js @@ -49,8 +49,8 @@ export default { ], "name": "wrap" }, - "generator": true, "expression": false, + "generator": true, "async": false, "params": [], "body": { @@ -490,4 +490,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file 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 ca50f5c1..fee74692 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 @@ export default { - "message": "Cannot use 'await' as identifier inside an async function", - "column": 32, "index": 31, - "lineNumber": 1 -} + "lineNumber": 1, + "column": 32, + "message": "Cannot use 'await' as identifier inside an async function" +}; \ 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 d9db3660..3303682a 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 @@ -3,4 +3,4 @@ export default { "lineNumber": 1, "column": 20, "message": "Cannot use 'await' as identifier inside an async function" -} +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/invalid-async-class-broken.result.js b/tests/fixtures/ecma-version/8/modules/invalid-async-class-broken.result.js index b1c38b52..6f877d1a 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-async-class-broken.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-async-class-broken.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token foo", - "column": 3, "index": 17, - "lineNumber": 2 -} \ No newline at end of file + "lineNumber": 2, + "column": 3, + "message": "Unexpected token foo" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/invalid-async-class-generator.result.js b/tests/fixtures/ecma-version/8/modules/invalid-async-class-generator.result.js index 54293fde..069c1857 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-async-class-generator.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-async-class-generator.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token *", - "column": 15, "index": 14, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 15, + "message": "Unexpected token *" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/invalid-async-class-getter.result.js b/tests/fixtures/ecma-version/8/modules/invalid-async-class-getter.result.js index a6c48475..283d46fe 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-async-class-getter.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-async-class-getter.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token foo", - "column": 20, "index": 19, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 20, + "message": "Unexpected token foo" +}; \ No newline at end of file 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 ca50f5c1..fee74692 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 @@ export default { - "message": "Cannot use 'await' as identifier inside an async function", - "column": 32, "index": 31, - "lineNumber": 1 -} + "lineNumber": 1, + "column": 32, + "message": "Cannot use 'await' as identifier inside an async function" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/invalid-async-class-method-empty-await.result.js b/tests/fixtures/ecma-version/8/modules/invalid-async-class-method-empty-await.result.js index 1de9735e..e67b39fb 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-async-class-method-empty-await.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-async-class-method-empty-await.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token }", - "column": 29, "index": 28, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 29, + "message": "Unexpected token }" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/invalid-async-class-setter.result.js b/tests/fixtures/ecma-version/8/modules/invalid-async-class-setter.result.js index a6c48475..283d46fe 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-async-class-setter.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-async-class-setter.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token foo", - "column": 20, "index": 19, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 20, + "message": "Unexpected token foo" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/invalid-async-constructor.result.js b/tests/fixtures/ecma-version/8/modules/invalid-async-constructor.result.js index 948b417b..f6406f15 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-async-constructor.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-async-constructor.result.js @@ -1,6 +1,6 @@ export default { - "message": "Constructor can't be an async method", - "column": 16, "index": 15, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 16, + "message": "Constructor can't be an async method" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/invalid-async-expression-generators.result.js b/tests/fixtures/ecma-version/8/modules/invalid-async-expression-generators.result.js index 35c477a8..a0252d39 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-async-expression-generators.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-async-expression-generators.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token *", - "column": 16, "index": 15, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 16, + "message": "Unexpected token *" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/invalid-async-expression-plain-await.result.js b/tests/fixtures/ecma-version/8/modules/invalid-async-expression-plain-await.result.js index d7022932..56df0aff 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-async-expression-plain-await.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-async-expression-plain-await.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token }", - "column": 31, "index": 30, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 31, + "message": "Unexpected token }" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/invalid-async-expression.result.js b/tests/fixtures/ecma-version/8/modules/invalid-async-expression.result.js index 3fac74bf..af24c1fd 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-async-expression.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-async-expression.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token function", - "column": 1, "index": 7, - "lineNumber": 2 -} \ No newline at end of file + "lineNumber": 2, + "column": 1, + "message": "Unexpected token function" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/invalid-async-generator-expression.result.js b/tests/fixtures/ecma-version/8/modules/invalid-async-generator-expression.result.js index 35c477a8..a0252d39 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-async-generator-expression.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-async-generator-expression.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token *", - "column": 16, "index": 15, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 16, + "message": "Unexpected token *" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/invalid-async-generator-method.result.js b/tests/fixtures/ecma-version/8/modules/invalid-async-generator-method.result.js index f2c6df40..00359326 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-async-generator-method.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-async-generator-method.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token *", - "column": 8, "index": 7, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 8, + "message": "Unexpected token *" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/invalid-async-generator.result.js b/tests/fixtures/ecma-version/8/modules/invalid-async-generator.result.js index 45bf74d1..5f3ae45d 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-async-generator.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-async-generator.result.js @@ -1,6 +1,6 @@ export default { - "message": "Await expression cannot be a default value", - "column": 23, "index": 22, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 23, + "message": "Await expression cannot be a default value" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/invalid-async-getter-method-with-params.result.js b/tests/fixtures/ecma-version/8/modules/invalid-async-getter-method-with-params.result.js index 69aafc52..cbcbcfa0 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-async-getter-method-with-params.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-async-getter-method-with-params.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token foo", - "column": 13, "index": 12, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 13, + "message": "Unexpected token foo" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/invalid-async-getter-method.result.js b/tests/fixtures/ecma-version/8/modules/invalid-async-getter-method.result.js index 69aafc52..cbcbcfa0 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-async-getter-method.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-async-getter-method.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token foo", - "column": 13, "index": 12, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 13, + "message": "Unexpected token foo" +}; \ 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 ab12ce30..6ade6c9b 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 @@ -3,4 +3,4 @@ export default { "lineNumber": 1, "column": 28, "message": "Cannot use 'await' as identifier inside an async function" -} +}; \ No newline at end of file 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 d9db3660..3303682a 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 @@ -3,4 +3,4 @@ export default { "lineNumber": 1, "column": 20, "message": "Cannot use 'await' as identifier inside an async function" -} +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/invalid-async-method-empty-await.result.js b/tests/fixtures/ecma-version/8/modules/invalid-async-method-empty-await.result.js index d85f518a..b2a8e6b6 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-async-method-empty-await.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-async-method-empty-await.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token }", - "column": 23, "index": 22, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 23, + "message": "Unexpected token }" +}; \ No newline at end of file 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 5b13e677..292917d5 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 @@ -3,4 +3,4 @@ export default { "lineNumber": 1, "column": 21, "message": "Cannot use 'await' as identifier inside an async function" -} +}; \ No newline at end of file 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 39d2b994..cd9066c8 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 @@ export default { - "message": "Cannot use 'await' as identifier inside an async function", - "column": 25, "index": 24, - "lineNumber": 1 -} + "lineNumber": 1, + "column": 25, + "message": "Cannot use 'await' as identifier inside an async function" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/invalid-async-object.result.js b/tests/fixtures/ecma-version/8/modules/invalid-async-object.result.js index 6fbc704f..6ae7218f 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-async-object.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-async-object.result.js @@ -1,6 +1,6 @@ export default { - "message": "Shorthand property assignments are valid only in destructuring patterns", - "column": 11, "index": 10, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 11, + "message": "Shorthand property assignments are valid only in destructuring patterns" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/invalid-async-plain-await.result.js b/tests/fixtures/ecma-version/8/modules/invalid-async-plain-await.result.js index 7df964ba..a09a37a4 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-async-plain-await.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-async-plain-await.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token }", - "column": 30, "index": 29, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 30, + "message": "Unexpected token }" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/invalid-async-prop.result.js b/tests/fixtures/ecma-version/8/modules/invalid-async-prop.result.js index f12f68ae..4f30e0e6 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-async-prop.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-async-prop.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token :", - "column": 12, "index": 11, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 12, + "message": "Unexpected token :" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/invalid-async-static-method-broken.result.js b/tests/fixtures/ecma-version/8/modules/invalid-async-static-method-broken.result.js index cae7c094..07265565 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-async-static-method-broken.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-async-static-method-broken.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token foo", - "column": 3, "index": 24, - "lineNumber": 2 -} \ No newline at end of file + "lineNumber": 2, + "column": 3, + "message": "Unexpected token foo" +}; \ 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 3ebb74e3..46397737 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,6 +1,6 @@ export default { - "message": "Cannot use keyword 'await' outside an async function", - "column": 8, "index": 7, - "lineNumber": 1 -}; + "lineNumber": 1, + "column": 8, + "message": "Cannot use keyword 'await' outside an async function" +}; \ No newline at end of file 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 c4257599..0a883ba6 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,6 +1,6 @@ export default { - "message": "Cannot use keyword 'await' outside an async function", - "column": 7, "index": 6, - "lineNumber": 1 -}; + "lineNumber": 1, + "column": 7, + "message": "Cannot use keyword 'await' outside an async function" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/invalid-await-default.result.js b/tests/fixtures/ecma-version/8/modules/invalid-await-default.result.js index bdc66362..c6d494ff 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-await-default.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-await-default.result.js @@ -1,6 +1,6 @@ export default { - "message": "Await expression cannot be a default value", - "column": 8, "index": 31, - "lineNumber": 2 -} \ No newline at end of file + "lineNumber": 2, + "column": 8, + "message": "Await expression cannot be a default value" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/invalid-await-destructured-default.result.js b/tests/fixtures/ecma-version/8/modules/invalid-await-destructured-default.result.js index c5051924..aaa544db 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-await-destructured-default.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-await-destructured-default.result.js @@ -1,6 +1,6 @@ export default { - "message": "Await expression cannot be a default value", - "column": 9, "index": 32, - "lineNumber": 2 -} \ No newline at end of file + "lineNumber": 2, + "column": 9, + "message": "Await expression cannot be a default value" +}; \ No newline at end of file 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 8b01e897..c9c0f9e1 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 @@ -3,4 +3,4 @@ export default { "lineNumber": 1, "column": 9, "message": "Cannot use keyword 'await' outside an async function" -}; +}; \ No newline at end of file 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 ff36523a..ae5befdf 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 @@ -3,4 +3,4 @@ export default { "lineNumber": 1, "column": 17, "message": "Cannot use 'await' as identifier inside an async function" -} +}; \ No newline at end of file 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 abaecca9..1baf1c23 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 @@ export default { - "message": "Cannot use 'await' as identifier inside an async function", - "column": 33, "index": 32, - "lineNumber": 1 -} + "lineNumber": 1, + "column": 33, + "message": "Cannot use 'await' as identifier inside an async function" +}; \ 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 ca50f5c1..fee74692 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 @@ export default { - "message": "Cannot use 'await' as identifier inside an async function", - "column": 32, "index": 31, - "lineNumber": 1 -} + "lineNumber": 1, + "column": 32, + "message": "Cannot use 'await' as identifier inside an async function" +}; \ 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 22873c75..c9c0f9e1 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,6 +1,6 @@ export default { - "message": "Cannot use keyword 'await' outside an async function", - "column": 9, "index": 8, - "lineNumber": 1 -}; + "lineNumber": 1, + "column": 9, + "message": "Cannot use keyword 'await' outside an async function" +}; \ No newline at end of file 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 9d6f6d66..190a234c 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,6 +1,6 @@ export default { - "message": "Cannot use keyword 'await' outside an async function", - "column": 12, "index": 11, - "lineNumber": 1 -}; + "lineNumber": 1, + "column": 12, + "message": "Cannot use keyword 'await' outside an async function" +}; \ No newline at end of file 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 5b13e677..292917d5 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 @@ -3,4 +3,4 @@ export default { "lineNumber": 1, "column": 21, "message": "Cannot use 'await' as identifier inside an async function" -} +}; \ No newline at end of file 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 d9db3660..3303682a 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 @@ -3,4 +3,4 @@ export default { "lineNumber": 1, "column": 20, "message": "Cannot use 'await' as identifier inside an async function" -} +}; \ No newline at end of file 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 1537b02d..19b849d7 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,6 +1,6 @@ export default { - "message": "Cannot use keyword 'await' outside an async function", - "column": 1, "index": 0, - "lineNumber": 1 -}; + "lineNumber": 1, + "column": 1, + "message": "Cannot use keyword 'await' outside an async function" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/invalid-broken-async-arrow-after-parens.result.js b/tests/fixtures/ecma-version/8/modules/invalid-broken-async-arrow-after-parens.result.js index 9d18c51e..d594256b 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-broken-async-arrow-after-parens.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-broken-async-arrow-after-parens.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token =>", - "column": 1, "index": 9, - "lineNumber": 2 -} \ No newline at end of file + "lineNumber": 2, + "column": 1, + "message": "Unexpected token =>" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/invalid-broken-async-arrow-before-parens.result.js b/tests/fixtures/ecma-version/8/modules/invalid-broken-async-arrow-before-parens.result.js index a9eeff92..15d44731 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-broken-async-arrow-before-parens.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-broken-async-arrow-before-parens.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token =>", - "column": 4, "index": 9, - "lineNumber": 2 -} \ No newline at end of file + "lineNumber": 2, + "column": 4, + "message": "Unexpected token =>" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/invalid-broken-async-arrow.result.js b/tests/fixtures/ecma-version/8/modules/invalid-broken-async-arrow.result.js index 20aefbc9..9a8ec623 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-broken-async-arrow.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-broken-async-arrow.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token =>", - "column": 1, "index": 8, - "lineNumber": 2 -} \ No newline at end of file + "lineNumber": 2, + "column": 1, + "message": "Unexpected token =>" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/invalid-broken-async-object-method.result.js b/tests/fixtures/ecma-version/8/modules/invalid-broken-async-object-method.result.js index 026c9ef1..39ad6dec 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-broken-async-object-method.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-broken-async-object-method.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token foo", - "column": 1, "index": 8, - "lineNumber": 2 -} \ No newline at end of file + "lineNumber": 2, + "column": 1, + "message": "Unexpected token foo" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/invalid-broken-line-async.result.js b/tests/fixtures/ecma-version/8/modules/invalid-broken-line-async.result.js index 3fac74bf..af24c1fd 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-broken-line-async.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-broken-line-async.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token function", - "column": 1, "index": 7, - "lineNumber": 2 -} \ No newline at end of file + "lineNumber": 2, + "column": 1, + "message": "Unexpected token function" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/invalid-class-await-extend.result.js b/tests/fixtures/ecma-version/8/modules/invalid-class-await-extend.result.js index f58a8222..47bee5ef 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-class-await-extend.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-class-await-extend.result.js @@ -1,6 +1,6 @@ export default { - "message": "Await expression cannot be a default value", - "column": 39, "index": 38, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 39, + "message": "Await expression cannot be a default value" +}; \ No newline at end of file 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 bb8f5f9a..0208866f 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 @@ -3,4 +3,4 @@ export default { "lineNumber": 2, "column": 18, "message": "Cannot use 'await' as identifier inside an async function" -} +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/invalid-plain-await-arrow.result.js b/tests/fixtures/ecma-version/8/modules/invalid-plain-await-arrow.result.js index 7ef04cbb..bcd36848 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-plain-await-arrow.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-plain-await-arrow.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token ;", - "column": 18, "index": 17, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 18, + "message": "Unexpected token ;" +}; \ No newline at end of file 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 1537b02d..19b849d7 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,6 +1,6 @@ export default { - "message": "Cannot use keyword 'await' outside an async function", - "column": 1, "index": 0, - "lineNumber": 1 -}; + "lineNumber": 1, + "column": 1, + "message": "Cannot use keyword 'await' outside an async function" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/invalid-static-async-generator.result.js b/tests/fixtures/ecma-version/8/modules/invalid-static-async-generator.result.js index 51c7ddd9..c2c5db06 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-static-async-generator.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-static-async-generator.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token *", - "column": 22, "index": 21, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 22, + "message": "Unexpected token *" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/invalid-static-async-getter.result.js b/tests/fixtures/ecma-version/8/modules/invalid-static-async-getter.result.js index f5ad3f13..eb95aa94 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-static-async-getter.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-static-async-getter.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token foo", - "column": 27, "index": 26, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 27, + "message": "Unexpected token foo" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/invalid-static-async-setter.result.js b/tests/fixtures/ecma-version/8/modules/invalid-static-async-setter.result.js index f5ad3f13..eb95aa94 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-static-async-setter.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-static-async-setter.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token foo", - "column": 27, "index": 26, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 27, + "message": "Unexpected token foo" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/invalid-yield-default.result.js b/tests/fixtures/ecma-version/8/modules/invalid-yield-default.result.js index be427b87..e8ca6233 100644 --- a/tests/fixtures/ecma-version/8/modules/invalid-yield-default.result.js +++ b/tests/fixtures/ecma-version/8/modules/invalid-yield-default.result.js @@ -1,6 +1,6 @@ export default { - "message": "Yield expression cannot be a default value", - "column": 13, "index": 31, - "lineNumber": 2 -} \ No newline at end of file + "lineNumber": 2, + "column": 13, + "message": "Yield expression cannot be a default value" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/nested-async-await-method.result.js b/tests/fixtures/ecma-version/8/modules/nested-async-await-method.result.js index a3451af9..9cbf648e 100644 --- a/tests/fixtures/ecma-version/8/modules/nested-async-await-method.result.js +++ b/tests/fixtures/ecma-version/8/modules/nested-async-await-method.result.js @@ -49,8 +49,8 @@ export default { ], "name": "wrap" }, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -158,8 +158,8 @@ export default { 45 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -533,4 +533,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/no-async-expression.result.js b/tests/fixtures/ecma-version/8/modules/no-async-expression.result.js index dc5c654a..23e3560c 100644 --- a/tests/fixtures/ecma-version/8/modules/no-async-expression.result.js +++ b/tests/fixtures/ecma-version/8/modules/no-async-expression.result.js @@ -65,8 +65,8 @@ export default { ], "name": "foo" }, - "generator": false, "expression": false, + "generator": false, "async": false, "params": [], "body": { @@ -255,4 +255,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/no-async.result.js b/tests/fixtures/ecma-version/8/modules/no-async.result.js index cd27bd6f..4d29c972 100644 --- a/tests/fixtures/ecma-version/8/modules/no-async.result.js +++ b/tests/fixtures/ecma-version/8/modules/no-async.result.js @@ -49,8 +49,8 @@ export default { ], "name": "foo" }, - "generator": false, "expression": false, + "generator": false, "async": false, "params": [], "body": { @@ -219,4 +219,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/object-method.result.js b/tests/fixtures/ecma-version/8/modules/object-method.result.js index 42d8ba7d..abfe3775 100644 --- a/tests/fixtures/ecma-version/8/modules/object-method.result.js +++ b/tests/fixtures/ecma-version/8/modules/object-method.result.js @@ -103,8 +103,8 @@ export default { 11 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": false, "params": [], "body": { @@ -314,4 +314,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file 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 1537b02d..19b849d7 100644 --- a/tests/fixtures/ecma-version/8/modules/plain-await.result.js +++ b/tests/fixtures/ecma-version/8/modules/plain-await.result.js @@ -1,6 +1,6 @@ export default { - "message": "Cannot use keyword 'await' outside an async function", - "column": 1, "index": 0, - "lineNumber": 1 -}; + "lineNumber": 1, + "column": 1, + "message": "Cannot use keyword 'await' outside an async function" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/modules/static-async-named-class-method.result.js b/tests/fixtures/ecma-version/8/modules/static-async-named-class-method.result.js index 2905bb2a..0e992715 100644 --- a/tests/fixtures/ecma-version/8/modules/static-async-named-class-method.result.js +++ b/tests/fixtures/ecma-version/8/modules/static-async-named-class-method.result.js @@ -83,6 +83,7 @@ export default { 9, 27 ], + "static": true, "computed": false, "key": { "type": "Identifier", @@ -102,7 +103,6 @@ export default { ], "name": "async" }, - "static": true, "kind": "method", "value": { "type": "FunctionExpression", @@ -121,8 +121,8 @@ export default { 27 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": false, "params": [], "body": { @@ -367,4 +367,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/arrow-func-parens.result.js b/tests/fixtures/ecma-version/8/not-strict/arrow-func-parens.result.js index fa32bfb4..bc33d740 100644 --- a/tests/fixtures/ecma-version/8/not-strict/arrow-func-parens.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/arrow-func-parens.result.js @@ -48,8 +48,8 @@ export default { 8 ], "id": null, - "generator": false, "expression": true, + "generator": false, "async": false, "params": [ { @@ -203,4 +203,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/arrow-func.result.js b/tests/fixtures/ecma-version/8/not-strict/arrow-func.result.js index 49be2313..a4ae168d 100644 --- a/tests/fixtures/ecma-version/8/not-strict/arrow-func.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/arrow-func.result.js @@ -48,8 +48,8 @@ export default { 6 ], "id": null, - "generator": false, "expression": true, + "generator": false, "async": false, "params": [ { @@ -167,4 +167,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-and-no-async.result.js b/tests/fixtures/ecma-version/8/not-strict/async-and-no-async.result.js index 0231f32a..97bafa47 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-and-no-async.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-and-no-async.result.js @@ -84,8 +84,8 @@ export default { ], "name": "foo" }, - "generator": false, "expression": false, + "generator": false, "async": false, "params": [], "body": { @@ -272,4 +272,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-arrow-func-destructed-defaults.result.js b/tests/fixtures/ecma-version/8/not-strict/async-arrow-func-destructed-defaults.result.js index 06ef8bb1..fdf091c3 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-arrow-func-destructed-defaults.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-arrow-func-destructed-defaults.result.js @@ -48,8 +48,8 @@ export default { 23 ], "id": null, - "generator": false, "expression": true, + "generator": false, "async": true, "params": [ { @@ -422,4 +422,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-arrow-func-destructed.result.js b/tests/fixtures/ecma-version/8/not-strict/async-arrow-func-destructed.result.js index b0a94d67..ed3d6ad7 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-arrow-func-destructed.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-arrow-func-destructed.result.js @@ -48,8 +48,8 @@ export default { 20 ], "id": null, - "generator": false, "expression": true, + "generator": false, "async": true, "params": [ { @@ -386,4 +386,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-arrow-func-parens-multi.result.js b/tests/fixtures/ecma-version/8/not-strict/async-arrow-func-parens-multi.result.js index 9a47cd69..ccbc4493 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-arrow-func-parens-multi.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-arrow-func-parens-multi.result.js @@ -48,8 +48,8 @@ export default { 17 ], "id": null, - "generator": false, "expression": true, + "generator": false, "async": true, "params": [ { @@ -275,4 +275,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-arrow-func-parens.result.js b/tests/fixtures/ecma-version/8/not-strict/async-arrow-func-parens.result.js index f6de3784..789fc3d2 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-arrow-func-parens.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-arrow-func-parens.result.js @@ -65,8 +65,8 @@ export default { ], "name": "foo" }, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [ { @@ -399,4 +399,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-arrow-func.result.js b/tests/fixtures/ecma-version/8/not-strict/async-arrow-func.result.js index ca0f1469..bd381fae 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-arrow-func.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-arrow-func.result.js @@ -48,8 +48,8 @@ export default { 12 ], "id": null, - "generator": false, "expression": true, + "generator": false, "async": true, "params": [ { @@ -185,4 +185,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-as-property-name.result.js b/tests/fixtures/ecma-version/8/not-strict/async-as-property-name.result.js index 2bb9afaf..044bc906 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-as-property-name.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-as-property-name.result.js @@ -257,4 +257,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-await-arrow-expression.result.js b/tests/fixtures/ecma-version/8/not-strict/async-await-arrow-expression.result.js index 494e48a6..e5a4878b 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-await-arrow-expression.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-await-arrow-expression.result.js @@ -48,8 +48,8 @@ export default { 21 ], "id": null, - "generator": false, "expression": true, + "generator": false, "async": true, "params": [ { @@ -292,4 +292,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-await-arrow-param.result.js b/tests/fixtures/ecma-version/8/not-strict/async-await-arrow-param.result.js index d9a9737f..96ae3c8e 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-await-arrow-param.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-await-arrow-param.result.js @@ -49,8 +49,8 @@ export default { ], "name": "foo" }, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [ { @@ -104,8 +104,8 @@ export default { 42 ], "id": null, - "generator": false, "expression": true, + "generator": false, "async": true, "params": [], "body": { @@ -474,4 +474,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-await-class-method-param.result.js b/tests/fixtures/ecma-version/8/not-strict/async-await-class-method-param.result.js index 972e96f3..a810a0a4 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-await-class-method-param.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-await-class-method-param.result.js @@ -49,8 +49,8 @@ export default { ], "name": "foo" }, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [ { @@ -138,6 +138,7 @@ export default { 30, 53 ], + "static": false, "computed": false, "key": { "type": "Identifier", @@ -157,7 +158,6 @@ export default { ], "name": "bar" }, - "static": false, "kind": "method", "value": { "type": "FunctionExpression", @@ -176,8 +176,8 @@ export default { 53 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -676,4 +676,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-await-destructured-default.result.js b/tests/fixtures/ecma-version/8/not-strict/async-await-destructured-default.result.js index 5f8ae760..0ff19ef6 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-await-destructured-default.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-await-destructured-default.result.js @@ -49,8 +49,8 @@ export default { ], "name": "wrap" }, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -599,4 +599,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-await-expression-class-method.result.js b/tests/fixtures/ecma-version/8/not-strict/async-await-expression-class-method.result.js index cef1dd8b..6e217fec 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-await-expression-class-method.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-await-expression-class-method.result.js @@ -82,6 +82,7 @@ export default { 8, 32 ], + "static": false, "computed": false, "key": { "type": "Identifier", @@ -101,7 +102,6 @@ export default { ], "name": "foo" }, - "static": false, "kind": "method", "value": { "type": "FunctionExpression", @@ -120,8 +120,8 @@ export default { 32 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [ { @@ -494,4 +494,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-await-function-param.result.js b/tests/fixtures/ecma-version/8/not-strict/async-await-function-param.result.js index 8f6c4359..9ffe54b3 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-await-function-param.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-await-function-param.result.js @@ -49,8 +49,8 @@ export default { ], "name": "foo" }, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [ { @@ -121,8 +121,8 @@ export default { ], "name": "foo" }, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -581,4 +581,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-await-identifier-math.result.js b/tests/fixtures/ecma-version/8/not-strict/async-await-identifier-math.result.js index 19cebf93..c4898f64 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-await-identifier-math.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-await-identifier-math.result.js @@ -49,8 +49,8 @@ export default { ], "name": "foo" }, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -364,4 +364,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-await-inside-parens.result.js b/tests/fixtures/ecma-version/8/not-strict/async-await-inside-parens.result.js index 6547e6fc..b0b98bf3 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-await-inside-parens.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-await-inside-parens.result.js @@ -49,8 +49,8 @@ export default { ], "name": "wrap" }, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -434,4 +434,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-await-math.result.js b/tests/fixtures/ecma-version/8/not-strict/async-await-math.result.js index 688388f1..43384e9c 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-await-math.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-await-math.result.js @@ -49,8 +49,8 @@ export default { ], "name": "foo" }, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [ { @@ -524,4 +524,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-await-named-object-method.result.js b/tests/fixtures/ecma-version/8/not-strict/async-await-named-object-method.result.js index 9ad44cf2..c07d064b 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-await-named-object-method.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-await-named-object-method.result.js @@ -103,8 +103,8 @@ export default { 19 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -332,4 +332,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-await-object-method-param.result.js b/tests/fixtures/ecma-version/8/not-strict/async-await-object-method-param.result.js index 46e2e4d1..187fc754 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-await-object-method-param.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-await-object-method-param.result.js @@ -49,8 +49,8 @@ export default { ], "name": "foo" }, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [ { @@ -159,8 +159,8 @@ export default { 47 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -640,4 +640,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-await-object-method.result.js b/tests/fixtures/ecma-version/8/not-strict/async-await-object-method.result.js index ec254db1..9727fd3b 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-await-object-method.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-await-object-method.result.js @@ -103,8 +103,8 @@ export default { 26 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [ { @@ -458,4 +458,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-await.result.js b/tests/fixtures/ecma-version/8/not-strict/async-await.result.js index 2f4a7166..bbbe54b5 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-await.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-await.result.js @@ -49,8 +49,8 @@ export default { ], "name": "foo" }, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [ { @@ -417,4 +417,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-class-method-named-await.result.js b/tests/fixtures/ecma-version/8/not-strict/async-class-method-named-await.result.js index be655d7d..44166796 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-class-method-named-await.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-class-method-named-await.result.js @@ -83,6 +83,7 @@ export default { 9, 26 ], + "static": false, "computed": false, "key": { "type": "Identifier", @@ -102,7 +103,6 @@ export default { ], "name": "await" }, - "static": false, "kind": "method", "value": { "type": "FunctionExpression", @@ -121,8 +121,8 @@ export default { 26 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -367,4 +367,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-class-method.result.js b/tests/fixtures/ecma-version/8/not-strict/async-class-method.result.js index ec3a38fc..58667577 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-class-method.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-class-method.result.js @@ -83,6 +83,7 @@ export default { 9, 24 ], + "static": false, "computed": false, "key": { "type": "Identifier", @@ -102,7 +103,6 @@ export default { ], "name": "foo" }, - "static": false, "kind": "method", "value": { "type": "FunctionExpression", @@ -121,8 +121,8 @@ export default { 24 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -367,4 +367,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-destructured-assignment.result.js b/tests/fixtures/ecma-version/8/not-strict/async-destructured-assignment.result.js index bda362df..144b9462 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-destructured-assignment.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-destructured-assignment.result.js @@ -383,4 +383,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-expression.result.js b/tests/fixtures/ecma-version/8/not-strict/async-expression.result.js index ddfbd432..cf4f2e40 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-expression.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-expression.result.js @@ -65,8 +65,8 @@ export default { ], "name": "foo" }, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -273,4 +273,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-func.result.js b/tests/fixtures/ecma-version/8/not-strict/async-func.result.js index 302df496..391b2f11 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-func.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-func.result.js @@ -181,4 +181,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-named-class-method.result.js b/tests/fixtures/ecma-version/8/not-strict/async-named-class-method.result.js index 201b85ad..117620ea 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-named-class-method.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-named-class-method.result.js @@ -83,6 +83,7 @@ export default { 9, 20 ], + "static": false, "computed": false, "key": { "type": "Identifier", @@ -102,7 +103,6 @@ export default { ], "name": "async" }, - "static": false, "kind": "method", "value": { "type": "FunctionExpression", @@ -121,8 +121,8 @@ export default { 20 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": false, "params": [], "body": { @@ -349,4 +349,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-named-generator-method.result.js b/tests/fixtures/ecma-version/8/not-strict/async-named-generator-method.result.js index 2022c131..a83ebe46 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-named-generator-method.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-named-generator-method.result.js @@ -83,6 +83,7 @@ export default { 9, 21 ], + "static": false, "computed": false, "key": { "type": "Identifier", @@ -102,7 +103,6 @@ export default { ], "name": "async" }, - "static": false, "kind": "method", "value": { "type": "FunctionExpression", @@ -121,8 +121,8 @@ export default { 21 ], "id": null, - "generator": true, "expression": false, + "generator": true, "async": false, "params": [], "body": { @@ -367,4 +367,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-named-object-method.result.js b/tests/fixtures/ecma-version/8/not-strict/async-named-object-method.result.js index e0aa82a2..fa70d159 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-named-object-method.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-named-object-method.result.js @@ -103,8 +103,8 @@ export default { 13 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": false, "params": [], "body": { @@ -314,4 +314,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-named-static-generator-method.result.js b/tests/fixtures/ecma-version/8/not-strict/async-named-static-generator-method.result.js index e35ca6fc..a7ba7e2b 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-named-static-generator-method.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-named-static-generator-method.result.js @@ -83,6 +83,7 @@ export default { 9, 28 ], + "static": true, "computed": false, "key": { "type": "Identifier", @@ -102,7 +103,6 @@ export default { ], "name": "async" }, - "static": true, "kind": "method", "value": { "type": "FunctionExpression", @@ -121,8 +121,8 @@ export default { 28 ], "id": null, - "generator": true, "expression": false, + "generator": true, "async": false, "params": [], "body": { @@ -385,4 +385,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-named-variable.result.js b/tests/fixtures/ecma-version/8/not-strict/async-named-variable.result.js index e1231115..72e8d7dd 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-named-variable.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-named-variable.result.js @@ -183,4 +183,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-object-method-and-property.result.js b/tests/fixtures/ecma-version/8/not-strict/async-object-method-and-property.result.js index ead956db..23e1b007 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-object-method-and-property.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-object-method-and-property.result.js @@ -1,5 +1,3 @@ -"use strict"; - export default { "type": "Program", "loc": { @@ -105,8 +103,8 @@ export default { 17 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -464,4 +462,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-object-method.result.js b/tests/fixtures/ecma-version/8/not-strict/async-object-method.result.js index bc84125e..933e7c0d 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-object-method.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-object-method.result.js @@ -103,8 +103,8 @@ export default { 17 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -332,4 +332,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-shorthand-property-1.result.js b/tests/fixtures/ecma-version/8/not-strict/async-shorthand-property-1.result.js index 2615e256..5307b669 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-shorthand-property-1.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-shorthand-property-1.result.js @@ -202,4 +202,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-shorthand-property-2.result.js b/tests/fixtures/ecma-version/8/not-strict/async-shorthand-property-2.result.js index 0e8371c3..ed29030e 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-shorthand-property-2.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-shorthand-property-2.result.js @@ -295,4 +295,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-shorthand-property-3.result.js b/tests/fixtures/ecma-version/8/not-strict/async-shorthand-property-3.result.js index 177d96b1..fcdfa7e9 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-shorthand-property-3.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-shorthand-property-3.result.js @@ -364,4 +364,4 @@ export default { ] } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-static-class-method-named-await.result.js b/tests/fixtures/ecma-version/8/not-strict/async-static-class-method-named-await.result.js index 55ce5832..966503e7 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-static-class-method-named-await.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-static-class-method-named-await.result.js @@ -83,6 +83,7 @@ export default { 9, 33 ], + "static": true, "computed": false, "key": { "type": "Identifier", @@ -102,7 +103,6 @@ export default { ], "name": "await" }, - "static": true, "kind": "method", "value": { "type": "FunctionExpression", @@ -121,8 +121,8 @@ export default { 33 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -385,4 +385,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-static-class-method.result.js b/tests/fixtures/ecma-version/8/not-strict/async-static-class-method.result.js index 236e5a13..51a63208 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-static-class-method.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-static-class-method.result.js @@ -83,6 +83,7 @@ export default { 9, 31 ], + "static": true, "computed": false, "key": { "type": "Identifier", @@ -102,7 +103,6 @@ export default { ], "name": "foo" }, - "static": true, "kind": "method", "value": { "type": "FunctionExpression", @@ -121,8 +121,8 @@ export default { 31 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -385,4 +385,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-then-arrow.result.js b/tests/fixtures/ecma-version/8/not-strict/async-then-arrow.result.js index 781a09b3..a191f3ce 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-then-arrow.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-then-arrow.result.js @@ -83,8 +83,8 @@ export default { 12 ], "id": null, - "generator": false, "expression": true, + "generator": false, "async": false, "params": [ { @@ -220,4 +220,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-wrapped-class-await.result.js b/tests/fixtures/ecma-version/8/not-strict/async-wrapped-class-await.result.js index e7636cd5..fa9d4284 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-wrapped-class-await.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-wrapped-class-await.result.js @@ -49,8 +49,8 @@ export default { ], "name": "wrap" }, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -138,6 +138,7 @@ export default { 35, 52 ], + "static": false, "computed": false, "key": { "type": "Identifier", @@ -157,7 +158,6 @@ export default { ], "name": "await" }, - "static": false, "kind": "method", "value": { "type": "FunctionExpression", @@ -176,8 +176,8 @@ export default { 52 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -551,4 +551,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async-yield.result.js b/tests/fixtures/ecma-version/8/not-strict/async-yield.result.js index 5406def5..1a620601 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async-yield.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async-yield.result.js @@ -48,8 +48,8 @@ export default { 16 ], "id": null, - "generator": false, "expression": true, + "generator": false, "async": true, "params": [ { @@ -186,4 +186,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/async.result.js b/tests/fixtures/ecma-version/8/not-strict/async.result.js index 76c1ae4c..13b63239 100644 --- a/tests/fixtures/ecma-version/8/not-strict/async.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/async.result.js @@ -49,8 +49,8 @@ export default { ], "name": "foo" }, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -237,4 +237,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/await-identifier-math.result.js b/tests/fixtures/ecma-version/8/not-strict/await-identifier-math.result.js index a2eeeb95..a3b5089b 100644 --- a/tests/fixtures/ecma-version/8/not-strict/await-identifier-math.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/await-identifier-math.result.js @@ -49,8 +49,8 @@ export default { ], "name": "foo" }, - "generator": false, "expression": false, + "generator": false, "async": false, "params": [], "body": { @@ -346,4 +346,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/class-method.result.js b/tests/fixtures/ecma-version/8/not-strict/class-method.result.js index 9fdba851..575657d1 100644 --- a/tests/fixtures/ecma-version/8/not-strict/class-method.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/class-method.result.js @@ -83,6 +83,7 @@ export default { 9, 18 ], + "static": false, "computed": false, "key": { "type": "Identifier", @@ -102,7 +103,6 @@ export default { ], "name": "foo" }, - "static": false, "kind": "method", "value": { "type": "FunctionExpression", @@ -121,8 +121,8 @@ export default { 18 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": false, "params": [], "body": { @@ -349,4 +349,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/export-async.result.js b/tests/fixtures/ecma-version/8/not-strict/export-async.result.js index e13f8de4..521323ed 100644 --- a/tests/fixtures/ecma-version/8/not-strict/export-async.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/export-async.result.js @@ -1,6 +1,6 @@ export default { - "message": "'import' and 'export' may appear only with 'sourceType: module'", - "column": 1, "index": 0, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 1, + "message": "'import' and 'export' may appear only with 'sourceType: module'" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/export-default-async-expression.result.js b/tests/fixtures/ecma-version/8/not-strict/export-default-async-expression.result.js index e13f8de4..521323ed 100644 --- a/tests/fixtures/ecma-version/8/not-strict/export-default-async-expression.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/export-default-async-expression.result.js @@ -1,6 +1,6 @@ export default { - "message": "'import' and 'export' may appear only with 'sourceType: module'", - "column": 1, "index": 0, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 1, + "message": "'import' and 'export' may appear only with 'sourceType: module'" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/export-default-async.result.js b/tests/fixtures/ecma-version/8/not-strict/export-default-async.result.js index e13f8de4..521323ed 100644 --- a/tests/fixtures/ecma-version/8/not-strict/export-default-async.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/export-default-async.result.js @@ -1,6 +1,6 @@ export default { - "message": "'import' and 'export' may appear only with 'sourceType: module'", - "column": 1, "index": 0, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 1, + "message": "'import' and 'export' may appear only with 'sourceType: module'" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/generator-async-func.result.js b/tests/fixtures/ecma-version/8/not-strict/generator-async-func.result.js index 3a94b512..db2c90c1 100644 --- a/tests/fixtures/ecma-version/8/not-strict/generator-async-func.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/generator-async-func.result.js @@ -49,8 +49,8 @@ export default { ], "name": "wrap" }, - "generator": true, "expression": false, + "generator": true, "async": false, "params": [], "body": { @@ -490,4 +490,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file 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 ca50f5c1..fee74692 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 @@ export default { - "message": "Cannot use 'await' as identifier inside an async function", - "column": 32, "index": 31, - "lineNumber": 1 -} + "lineNumber": 1, + "column": 32, + "message": "Cannot use 'await' as identifier inside an async function" +}; \ 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 44162358..3303682a 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 @@ export default { - "message": "Cannot use 'await' as identifier inside an async function", - "column": 20, "index": 19, - "lineNumber": 1 -} + "lineNumber": 1, + "column": 20, + "message": "Cannot use 'await' as identifier inside an async function" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-async-class-broken.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-async-class-broken.result.js index b1c38b52..6f877d1a 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-async-class-broken.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-async-class-broken.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token foo", - "column": 3, "index": 17, - "lineNumber": 2 -} \ No newline at end of file + "lineNumber": 2, + "column": 3, + "message": "Unexpected token foo" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-async-class-generator.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-async-class-generator.result.js index 54293fde..069c1857 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-async-class-generator.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-async-class-generator.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token *", - "column": 15, "index": 14, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 15, + "message": "Unexpected token *" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-async-class-getter.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-async-class-getter.result.js index a6c48475..283d46fe 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-async-class-getter.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-async-class-getter.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token foo", - "column": 20, "index": 19, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 20, + "message": "Unexpected token foo" +}; \ 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 ca50f5c1..fee74692 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 @@ export default { - "message": "Cannot use 'await' as identifier inside an async function", - "column": 32, "index": 31, - "lineNumber": 1 -} + "lineNumber": 1, + "column": 32, + "message": "Cannot use 'await' as identifier inside an async function" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-async-class-method-empty-await.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-async-class-method-empty-await.result.js index 1de9735e..e67b39fb 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-async-class-method-empty-await.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-async-class-method-empty-await.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token }", - "column": 29, "index": 28, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 29, + "message": "Unexpected token }" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-async-class-setter.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-async-class-setter.result.js index a6c48475..283d46fe 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-async-class-setter.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-async-class-setter.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token foo", - "column": 20, "index": 19, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 20, + "message": "Unexpected token foo" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-async-constructor.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-async-constructor.result.js index 948b417b..f6406f15 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-async-constructor.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-async-constructor.result.js @@ -1,6 +1,6 @@ export default { - "message": "Constructor can't be an async method", - "column": 16, "index": 15, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 16, + "message": "Constructor can't be an async method" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-async-expression-generators.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-async-expression-generators.result.js index 35c477a8..a0252d39 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-async-expression-generators.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-async-expression-generators.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token *", - "column": 16, "index": 15, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 16, + "message": "Unexpected token *" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-async-expression-plain-await.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-async-expression-plain-await.result.js index d7022932..56df0aff 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-async-expression-plain-await.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-async-expression-plain-await.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token }", - "column": 31, "index": 30, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 31, + "message": "Unexpected token }" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-async-expression.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-async-expression.result.js index 3fac74bf..af24c1fd 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-async-expression.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-async-expression.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token function", - "column": 1, "index": 7, - "lineNumber": 2 -} \ No newline at end of file + "lineNumber": 2, + "column": 1, + "message": "Unexpected token function" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-async-generator-expression.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-async-generator-expression.result.js index 35c477a8..a0252d39 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-async-generator-expression.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-async-generator-expression.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token *", - "column": 16, "index": 15, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 16, + "message": "Unexpected token *" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-async-generator-method.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-async-generator-method.result.js index f2c6df40..00359326 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-async-generator-method.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-async-generator-method.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token *", - "column": 8, "index": 7, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 8, + "message": "Unexpected token *" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-async-generator.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-async-generator.result.js index 45bf74d1..5f3ae45d 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-async-generator.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-async-generator.result.js @@ -1,6 +1,6 @@ export default { - "message": "Await expression cannot be a default value", - "column": 23, "index": 22, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 23, + "message": "Await expression cannot be a default value" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-async-getter-method-with-params.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-async-getter-method-with-params.result.js index 69aafc52..cbcbcfa0 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-async-getter-method-with-params.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-async-getter-method-with-params.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token foo", - "column": 13, "index": 12, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 13, + "message": "Unexpected token foo" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-async-getter-method.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-async-getter-method.result.js index 69aafc52..cbcbcfa0 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-async-getter-method.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-async-getter-method.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token foo", - "column": 13, "index": 12, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 13, + "message": "Unexpected token foo" +}; \ 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 39ff77c8..6ade6c9b 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 @@ export default { - "message": "Cannot use 'await' as identifier inside an async function", - "column": 28, "index": 27, - "lineNumber": 1 -} + "lineNumber": 1, + "column": 28, + "message": "Cannot use 'await' as identifier inside an async function" +}; \ 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 44162358..3303682a 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 @@ export default { - "message": "Cannot use 'await' as identifier inside an async function", - "column": 20, "index": 19, - "lineNumber": 1 -} + "lineNumber": 1, + "column": 20, + "message": "Cannot use 'await' as identifier inside an async function" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-async-method-empty-await.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-async-method-empty-await.result.js index d85f518a..b2a8e6b6 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-async-method-empty-await.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-async-method-empty-await.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token }", - "column": 23, "index": 22, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 23, + "message": "Unexpected token }" +}; \ 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 01f55068..292917d5 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 @@ export default { - "message": "Cannot use 'await' as identifier inside an async function", - "column": 21, "index": 20, - "lineNumber": 1 -} + "lineNumber": 1, + "column": 21, + "message": "Cannot use 'await' as identifier inside an async function" +}; \ 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 39d2b994..cd9066c8 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 @@ export default { - "message": "Cannot use 'await' as identifier inside an async function", - "column": 25, "index": 24, - "lineNumber": 1 -} + "lineNumber": 1, + "column": 25, + "message": "Cannot use 'await' as identifier inside an async function" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-async-object.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-async-object.result.js index 6fbc704f..6ae7218f 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-async-object.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-async-object.result.js @@ -1,6 +1,6 @@ export default { - "message": "Shorthand property assignments are valid only in destructuring patterns", - "column": 11, "index": 10, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 11, + "message": "Shorthand property assignments are valid only in destructuring patterns" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-async-plain-await.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-async-plain-await.result.js index 7df964ba..a09a37a4 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-async-plain-await.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-async-plain-await.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token }", - "column": 30, "index": 29, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 30, + "message": "Unexpected token }" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-async-prop.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-async-prop.result.js index f12f68ae..4f30e0e6 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-async-prop.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-async-prop.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token :", - "column": 12, "index": 11, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 12, + "message": "Unexpected token :" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-async-static-method-broken.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-async-static-method-broken.result.js index cae7c094..07265565 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-async-static-method-broken.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-async-static-method-broken.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token foo", - "column": 3, "index": 24, - "lineNumber": 2 -} \ No newline at end of file + "lineNumber": 2, + "column": 3, + "message": "Unexpected token foo" +}; \ 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 76e2a98c..65792e52 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 @@ export default { - "message": "Cannot use 'await' as identifier inside an async function", - "column": 8, "index": 7, - "lineNumber": 1 -} + "lineNumber": 1, + "column": 8, + "message": "Cannot use 'await' as identifier inside an async function" +}; \ 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 72343bf6..ce7dde10 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 @@ export default { - "message": "Cannot use 'await' as identifier inside an async function", - "column": 7, "index": 6, - "lineNumber": 1 -} + "lineNumber": 1, + "column": 7, + "message": "Cannot use 'await' as identifier inside an async function" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-await-default.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-await-default.result.js index bdc66362..c6d494ff 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-await-default.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-await-default.result.js @@ -1,6 +1,6 @@ export default { - "message": "Await expression cannot be a default value", - "column": 8, "index": 31, - "lineNumber": 2 -} \ No newline at end of file + "lineNumber": 2, + "column": 8, + "message": "Await expression cannot be a default value" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-await-destructured-default.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-await-destructured-default.result.js index c5051924..aaa544db 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-await-destructured-default.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-await-destructured-default.result.js @@ -1,6 +1,6 @@ export default { - "message": "Await expression cannot be a default value", - "column": 9, "index": 32, - "lineNumber": 2 -} \ No newline at end of file + "lineNumber": 2, + "column": 9, + "message": "Await expression cannot be a default value" +}; \ 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 763b7ee0..e5b084f4 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 @@ export default { - "message": "Cannot use 'await' as identifier inside an async function", - "column": 9, "index": 8, - "lineNumber": 1 -} + "lineNumber": 1, + "column": 9, + "message": "Cannot use 'await' as identifier inside an async function" +}; \ 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 13c71041..ae5befdf 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 @@ export default { - "message": "Cannot use 'await' as identifier inside an async function", - "column": 17, "index": 16, - "lineNumber": 1 -} + "lineNumber": 1, + "column": 17, + "message": "Cannot use 'await' as identifier inside an async function" +}; \ 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 abaecca9..1baf1c23 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 @@ export default { - "message": "Cannot use 'await' as identifier inside an async function", - "column": 33, "index": 32, - "lineNumber": 1 -} + "lineNumber": 1, + "column": 33, + "message": "Cannot use 'await' as identifier inside an async function" +}; \ 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 ca50f5c1..fee74692 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 @@ export default { - "message": "Cannot use 'await' as identifier inside an async function", - "column": 32, "index": 31, - "lineNumber": 1 -} + "lineNumber": 1, + "column": 32, + "message": "Cannot use 'await' as identifier inside an async function" +}; \ 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 763b7ee0..e5b084f4 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 @@ export default { - "message": "Cannot use 'await' as identifier inside an async function", - "column": 9, "index": 8, - "lineNumber": 1 -} + "lineNumber": 1, + "column": 9, + "message": "Cannot use 'await' as identifier inside an async function" +}; \ 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 5f0592b0..387dee28 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 @@ export default { - "message": "Cannot use 'await' as identifier inside an async function", - "column": 12, "index": 11, - "lineNumber": 1 -} + "lineNumber": 1, + "column": 12, + "message": "Cannot use 'await' as identifier inside an async function" +}; \ 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 01f55068..292917d5 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 @@ export default { - "message": "Cannot use 'await' as identifier inside an async function", - "column": 21, "index": 20, - "lineNumber": 1 -} + "lineNumber": 1, + "column": 21, + "message": "Cannot use 'await' as identifier inside an async function" +}; \ 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 44162358..3303682a 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 @@ export default { - "message": "Cannot use 'await' as identifier inside an async function", - "column": 20, "index": 19, - "lineNumber": 1 -} + "lineNumber": 1, + "column": 20, + "message": "Cannot use 'await' as identifier inside an async function" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-await-top-level.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-await-top-level.result.js index c0c76ad7..713cb824 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-await-top-level.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-await-top-level.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token a", - "column": 7, "index": 6, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 7, + "message": "Unexpected token a" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-broken-async-arrow-after-parens.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-broken-async-arrow-after-parens.result.js index 9d18c51e..d594256b 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-broken-async-arrow-after-parens.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-broken-async-arrow-after-parens.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token =>", - "column": 1, "index": 9, - "lineNumber": 2 -} \ No newline at end of file + "lineNumber": 2, + "column": 1, + "message": "Unexpected token =>" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-broken-async-arrow-before-parens.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-broken-async-arrow-before-parens.result.js index a9eeff92..15d44731 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-broken-async-arrow-before-parens.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-broken-async-arrow-before-parens.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token =>", - "column": 4, "index": 9, - "lineNumber": 2 -} \ No newline at end of file + "lineNumber": 2, + "column": 4, + "message": "Unexpected token =>" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-broken-async-arrow.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-broken-async-arrow.result.js index 20aefbc9..9a8ec623 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-broken-async-arrow.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-broken-async-arrow.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token =>", - "column": 1, "index": 8, - "lineNumber": 2 -} \ No newline at end of file + "lineNumber": 2, + "column": 1, + "message": "Unexpected token =>" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-broken-async-object-method.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-broken-async-object-method.result.js index 026c9ef1..39ad6dec 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-broken-async-object-method.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-broken-async-object-method.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token foo", - "column": 1, "index": 8, - "lineNumber": 2 -} \ No newline at end of file + "lineNumber": 2, + "column": 1, + "message": "Unexpected token foo" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-broken-line-async.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-broken-line-async.result.js index 3fac74bf..af24c1fd 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-broken-line-async.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-broken-line-async.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token function", - "column": 1, "index": 7, - "lineNumber": 2 -} \ No newline at end of file + "lineNumber": 2, + "column": 1, + "message": "Unexpected token function" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-class-await-extend.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-class-await-extend.result.js index f58a8222..47bee5ef 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-class-await-extend.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-class-await-extend.result.js @@ -1,6 +1,6 @@ export default { - "message": "Await expression cannot be a default value", - "column": 39, "index": 38, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 39, + "message": "Await expression cannot be a default value" +}; \ 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 2d8adf2b..0208866f 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 @@ export default { - "message": "Cannot use 'await' as identifier inside an async function", - "column": 18, "index": 41, - "lineNumber": 2 -} + "lineNumber": 2, + "column": 18, + "message": "Cannot use 'await' as identifier inside an async function" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-plain-await-arrow.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-plain-await-arrow.result.js index 7ef04cbb..bcd36848 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-plain-await-arrow.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-plain-await-arrow.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token ;", - "column": 18, "index": 17, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 18, + "message": "Unexpected token ;" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-plain-await.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-plain-await.result.js index 8b4f7c64..9ee40ebe 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-plain-await.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-plain-await.result.js @@ -90,4 +90,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-static-async-generator.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-static-async-generator.result.js index 51c7ddd9..c2c5db06 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-static-async-generator.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-static-async-generator.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token *", - "column": 22, "index": 21, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 22, + "message": "Unexpected token *" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-static-async-getter.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-static-async-getter.result.js index f5ad3f13..eb95aa94 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-static-async-getter.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-static-async-getter.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token foo", - "column": 27, "index": 26, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 27, + "message": "Unexpected token foo" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-static-async-setter.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-static-async-setter.result.js index f5ad3f13..eb95aa94 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-static-async-setter.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-static-async-setter.result.js @@ -1,6 +1,6 @@ export default { - "message": "Unexpected token foo", - "column": 27, "index": 26, - "lineNumber": 1 -} \ No newline at end of file + "lineNumber": 1, + "column": 27, + "message": "Unexpected token foo" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/invalid-yield-default.result.js b/tests/fixtures/ecma-version/8/not-strict/invalid-yield-default.result.js index be427b87..e8ca6233 100644 --- a/tests/fixtures/ecma-version/8/not-strict/invalid-yield-default.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/invalid-yield-default.result.js @@ -1,6 +1,6 @@ export default { - "message": "Yield expression cannot be a default value", - "column": 13, "index": 31, - "lineNumber": 2 -} \ No newline at end of file + "lineNumber": 2, + "column": 13, + "message": "Yield expression cannot be a default value" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/nested-async-await-method.result.js b/tests/fixtures/ecma-version/8/not-strict/nested-async-await-method.result.js index 339ad37e..d8497654 100644 --- a/tests/fixtures/ecma-version/8/not-strict/nested-async-await-method.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/nested-async-await-method.result.js @@ -49,8 +49,8 @@ export default { ], "name": "wrap" }, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -158,8 +158,8 @@ export default { 45 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { @@ -533,4 +533,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/no-async-expression.result.js b/tests/fixtures/ecma-version/8/not-strict/no-async-expression.result.js index 9893c522..12002e05 100644 --- a/tests/fixtures/ecma-version/8/not-strict/no-async-expression.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/no-async-expression.result.js @@ -65,8 +65,8 @@ export default { ], "name": "foo" }, - "generator": false, "expression": false, + "generator": false, "async": false, "params": [], "body": { @@ -255,4 +255,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/no-async.result.js b/tests/fixtures/ecma-version/8/not-strict/no-async.result.js index a4f23511..85b8c049 100644 --- a/tests/fixtures/ecma-version/8/not-strict/no-async.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/no-async.result.js @@ -49,8 +49,8 @@ export default { ], "name": "foo" }, - "generator": false, "expression": false, + "generator": false, "async": false, "params": [], "body": { @@ -219,4 +219,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/object-method.result.js b/tests/fixtures/ecma-version/8/not-strict/object-method.result.js index 9594a2cd..e1171187 100644 --- a/tests/fixtures/ecma-version/8/not-strict/object-method.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/object-method.result.js @@ -103,8 +103,8 @@ export default { 11 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": false, "params": [], "body": { @@ -314,4 +314,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/plain-await.result.js b/tests/fixtures/ecma-version/8/not-strict/plain-await.result.js index 8b4f7c64..9ee40ebe 100644 --- a/tests/fixtures/ecma-version/8/not-strict/plain-await.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/plain-await.result.js @@ -90,4 +90,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/not-strict/static-async-named-class-method.result.js b/tests/fixtures/ecma-version/8/not-strict/static-async-named-class-method.result.js index 2efe23ab..d604d3c2 100644 --- a/tests/fixtures/ecma-version/8/not-strict/static-async-named-class-method.result.js +++ b/tests/fixtures/ecma-version/8/not-strict/static-async-named-class-method.result.js @@ -83,6 +83,7 @@ export default { 9, 27 ], + "static": true, "computed": false, "key": { "type": "Identifier", @@ -102,7 +103,6 @@ export default { ], "name": "async" }, - "static": true, "kind": "method", "value": { "type": "FunctionExpression", @@ -121,8 +121,8 @@ export default { 27 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": false, "params": [], "body": { @@ -367,4 +367,4 @@ export default { ] } ] -} \ No newline at end of file +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/8/var-destructured-array-literal.result.js b/tests/fixtures/ecma-version/8/var-destructured-array-literal.result.js index cbe66943..4853c64f 100644 --- a/tests/fixtures/ecma-version/8/var-destructured-array-literal.result.js +++ b/tests/fixtures/ecma-version/8/var-destructured-array-literal.result.js @@ -435,4 +435,4 @@ export default { ] } ] -} +}; \ 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 cf2c9c09..133a6d1d 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 @@ -3,4 +3,4 @@ export default { "lineNumber": 1, "column": 29, "message": "Cannot use keyword 'await' outside an async function" -}; +}; \ No newline at end of file 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 46d63863..cb40d2b3 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 @@ -3,4 +3,4 @@ export default { "lineNumber": 1, "column": 31, "message": "Cannot use keyword 'await' outside an async function" -}; +}; \ No newline at end of file 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 3a42c04d..df837d1e 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 @@ -3,4 +3,4 @@ export default { "lineNumber": 1, "column": 28, "message": "Cannot use keyword 'await' outside an async function" -}; +}; \ No newline at end of file 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 6b919584..36779743 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 @@ -3,4 +3,4 @@ export default { "lineNumber": 1, "column": 30, "message": "Cannot use keyword 'await' outside an async function" -}; +}; \ No newline at end of file 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 d265e468..45a0031e 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 @@ export default { "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-1.module-result.js b/tests/fixtures/ecma-version/9/async-generator/invalid-yield-in-nested-function-1.module-result.js index 98171b87..8f333755 100644 --- a/tests/fixtures/ecma-version/9/async-generator/invalid-yield-in-nested-function-1.module-result.js +++ b/tests/fixtures/ecma-version/9/async-generator/invalid-yield-in-nested-function-1.module-result.js @@ -3,4 +3,4 @@ export default { "lineNumber": 1, "column": 29, "message": "The keyword 'yield' is reserved" -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/9/async-generator/invalid-yield-in-nested-function-2.module-result.js b/tests/fixtures/ecma-version/9/async-generator/invalid-yield-in-nested-function-2.module-result.js index 3333ad4c..11e802e9 100644 --- a/tests/fixtures/ecma-version/9/async-generator/invalid-yield-in-nested-function-2.module-result.js +++ b/tests/fixtures/ecma-version/9/async-generator/invalid-yield-in-nested-function-2.module-result.js @@ -3,4 +3,4 @@ export default { "lineNumber": 1, "column": 31, "message": "The keyword 'yield' is reserved" -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/9/async-generator/invalid-yield-in-nested-function-3.module-result.js b/tests/fixtures/ecma-version/9/async-generator/invalid-yield-in-nested-function-3.module-result.js index 983224e9..d759cbc4 100644 --- a/tests/fixtures/ecma-version/9/async-generator/invalid-yield-in-nested-function-3.module-result.js +++ b/tests/fixtures/ecma-version/9/async-generator/invalid-yield-in-nested-function-3.module-result.js @@ -3,4 +3,4 @@ export default { "lineNumber": 1, "column": 28, "message": "The keyword 'yield' is reserved" -}; +}; \ 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 94816a28..2c2e45e8 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 @@ -3,4 +3,4 @@ export default { "lineNumber": 1, "column": 30, "message": "The keyword 'yield' is reserved" -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/9/async-generator/valid-class-method.result.js b/tests/fixtures/ecma-version/9/async-generator/valid-class-method.result.js index 051d9971..e31ef1bd 100644 --- a/tests/fixtures/ecma-version/9/async-generator/valid-class-method.result.js +++ b/tests/fixtures/ecma-version/9/async-generator/valid-class-method.result.js @@ -83,7 +83,6 @@ export default { 10, 42 ], - "kind": "method", "static": false, "computed": false, "key": { @@ -104,6 +103,7 @@ export default { ], "name": "f" }, + "kind": "method", "value": { "type": "FunctionExpression", "loc": { @@ -121,8 +121,8 @@ export default { 42 ], "id": null, - "generator": true, "expression": false, + "generator": true, "async": true, "params": [], "body": { diff --git a/tests/fixtures/ecma-version/9/async-generator/valid-class-static-method.result.js b/tests/fixtures/ecma-version/9/async-generator/valid-class-static-method.result.js index 4d48d9f4..2a32e5f6 100644 --- a/tests/fixtures/ecma-version/9/async-generator/valid-class-static-method.result.js +++ b/tests/fixtures/ecma-version/9/async-generator/valid-class-static-method.result.js @@ -83,7 +83,6 @@ export default { 10, 49 ], - "kind": "method", "static": true, "computed": false, "key": { @@ -104,6 +103,7 @@ export default { ], "name": "f" }, + "kind": "method", "value": { "type": "FunctionExpression", "loc": { @@ -121,8 +121,8 @@ export default { 49 ], "id": null, - "generator": true, "expression": false, + "generator": true, "async": true, "params": [], "body": { diff --git a/tests/fixtures/ecma-version/9/async-generator/valid-function-declaration.result.js b/tests/fixtures/ecma-version/9/async-generator/valid-function-declaration.result.js index 5ffdf797..12b14f8a 100644 --- a/tests/fixtures/ecma-version/9/async-generator/valid-function-declaration.result.js +++ b/tests/fixtures/ecma-version/9/async-generator/valid-function-declaration.result.js @@ -49,8 +49,8 @@ export default { ], "name": "f" }, - "generator": true, "expression": false, + "generator": true, "async": true, "params": [], "body": { diff --git a/tests/fixtures/ecma-version/9/async-generator/valid-function-expression.result.js b/tests/fixtures/ecma-version/9/async-generator/valid-function-expression.result.js index 2d9fbe6b..5f2daa8e 100644 --- a/tests/fixtures/ecma-version/9/async-generator/valid-function-expression.result.js +++ b/tests/fixtures/ecma-version/9/async-generator/valid-function-expression.result.js @@ -83,8 +83,8 @@ export default { 43 ], "id": null, - "generator": true, "expression": false, + "generator": true, "async": true, "params": [], "body": { diff --git a/tests/fixtures/ecma-version/9/async-generator/valid-object-method.result.js b/tests/fixtures/ecma-version/9/async-generator/valid-object-method.result.js index 31799f7d..77dfd9f8 100644 --- a/tests/fixtures/ecma-version/9/async-generator/valid-object-method.result.js +++ b/tests/fixtures/ecma-version/9/async-generator/valid-object-method.result.js @@ -138,8 +138,8 @@ export default { 40 ], "id": null, - "generator": true, "expression": false, + "generator": true, "async": true, "params": [], "body": { diff --git a/tests/fixtures/ecma-version/9/for-await-of/valid-in-with-reference.result.js b/tests/fixtures/ecma-version/9/for-await-of/valid-in-with-reference.result.js index 46aff2f8..943621d1 100644 --- a/tests/fixtures/ecma-version/9/for-await-of/valid-in-with-reference.result.js +++ b/tests/fixtures/ecma-version/9/for-await-of/valid-in-with-reference.result.js @@ -49,8 +49,8 @@ export default { ], "name": "f" }, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { diff --git a/tests/fixtures/ecma-version/9/for-await-of/valid-linebreak-before-await.result.js b/tests/fixtures/ecma-version/9/for-await-of/valid-linebreak-before-await.result.js index 8b1345f6..09441e87 100644 --- a/tests/fixtures/ecma-version/9/for-await-of/valid-linebreak-before-await.result.js +++ b/tests/fixtures/ecma-version/9/for-await-of/valid-linebreak-before-await.result.js @@ -49,8 +49,8 @@ export default { ], "name": "f" }, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { diff --git a/tests/fixtures/ecma-version/9/for-await-of/valid-with-async-arrow-function.result.js b/tests/fixtures/ecma-version/9/for-await-of/valid-with-async-arrow-function.result.js index ba92432c..9adf6bf7 100644 --- a/tests/fixtures/ecma-version/9/for-await-of/valid-with-async-arrow-function.result.js +++ b/tests/fixtures/ecma-version/9/for-await-of/valid-with-async-arrow-function.result.js @@ -83,8 +83,8 @@ export default { 39 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { diff --git a/tests/fixtures/ecma-version/9/for-await-of/valid-with-async-function-expression.result.js b/tests/fixtures/ecma-version/9/for-await-of/valid-with-async-function-expression.result.js index 57c49edd..2c093a01 100644 --- a/tests/fixtures/ecma-version/9/for-await-of/valid-with-async-function-expression.result.js +++ b/tests/fixtures/ecma-version/9/for-await-of/valid-with-async-function-expression.result.js @@ -83,8 +83,8 @@ export default { 45 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { diff --git a/tests/fixtures/ecma-version/9/for-await-of/valid-with-async-method-1.result.js b/tests/fixtures/ecma-version/9/for-await-of/valid-with-async-method-1.result.js index 6d6b8cdf..4984c939 100644 --- a/tests/fixtures/ecma-version/9/for-await-of/valid-with-async-method-1.result.js +++ b/tests/fixtures/ecma-version/9/for-await-of/valid-with-async-method-1.result.js @@ -138,8 +138,8 @@ export default { 42 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { diff --git a/tests/fixtures/ecma-version/9/for-await-of/valid-with-async-method-2.result.js b/tests/fixtures/ecma-version/9/for-await-of/valid-with-async-method-2.result.js index 5b2f6747..4b61ba36 100644 --- a/tests/fixtures/ecma-version/9/for-await-of/valid-with-async-method-2.result.js +++ b/tests/fixtures/ecma-version/9/for-await-of/valid-with-async-method-2.result.js @@ -83,7 +83,6 @@ export default { 10, 44 ], - "kind": "method", "static": false, "computed": false, "key": { @@ -104,6 +103,7 @@ export default { ], "name": "f" }, + "kind": "method", "value": { "type": "FunctionExpression", "loc": { @@ -121,8 +121,8 @@ export default { 44 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { diff --git a/tests/fixtures/ecma-version/9/for-await-of/valid-with-let.result.js b/tests/fixtures/ecma-version/9/for-await-of/valid-with-let.result.js index d7b05187..eb417f84 100644 --- a/tests/fixtures/ecma-version/9/for-await-of/valid-with-let.result.js +++ b/tests/fixtures/ecma-version/9/for-await-of/valid-with-let.result.js @@ -49,8 +49,8 @@ export default { ], "name": "f" }, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { diff --git a/tests/fixtures/ecma-version/9/for-await-of/valid-with-var.result.js b/tests/fixtures/ecma-version/9/for-await-of/valid-with-var.result.js index acaed25a..7d5fe5e7 100644 --- a/tests/fixtures/ecma-version/9/for-await-of/valid-with-var.result.js +++ b/tests/fixtures/ecma-version/9/for-await-of/valid-with-var.result.js @@ -49,8 +49,8 @@ export default { ], "name": "f" }, - "generator": false, "expression": false, + "generator": false, "async": true, "params": [], "body": { diff --git a/tests/fixtures/ecma-version/9/regexp-lookbehind-assertion/valid-negative-1.result.js b/tests/fixtures/ecma-version/9/regexp-lookbehind-assertion/valid-negative-1.result.js index 9c1454ef..defd95e6 100644 --- a/tests/fixtures/ecma-version/9/regexp-lookbehind-assertion/valid-negative-1.result.js +++ b/tests/fixtures/ecma-version/9/regexp-lookbehind-assertion/valid-negative-1.result.js @@ -1,5 +1,3 @@ -import conditionalRegex from "../../../../lib/conditional-regex-value.js"; - export default { "type": "Program", "loc": { @@ -33,7 +31,7 @@ export default { 0, 8 ], - "expression": conditionalRegex({ + "expression": { "type": "Literal", "loc": { "start": { @@ -49,12 +47,13 @@ export default { 0, 8 ], + "value": /(?a)\k/, "raw": "/(?<\\u0041\\u0042>a)\\k/", "regex": { "pattern": "(?<\\u0041\\u0042>a)\\k", "flags": "" } - }) + } } ], "sourceType": "script", @@ -83,4 +81,4 @@ export default { } } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/9/regexp-named-group/valid-backreference-2.result.js b/tests/fixtures/ecma-version/9/regexp-named-group/valid-backreference-2.result.js index 574a0b3e..57b33038 100644 --- a/tests/fixtures/ecma-version/9/regexp-named-group/valid-backreference-2.result.js +++ b/tests/fixtures/ecma-version/9/regexp-named-group/valid-backreference-2.result.js @@ -1,5 +1,3 @@ -import conditionalRegex from "../../../../lib/conditional-regex-value.js"; - export default { "type": "Program", "loc": { @@ -33,7 +31,7 @@ export default { 0, 13 ], - "expression": conditionalRegex({ + "expression": { "type": "Literal", "loc": { "start": { @@ -49,13 +47,13 @@ export default { 0, 13 ], - "value": null, + "value": /(?a)\1/u, "raw": "/(?a)\\1/u", "regex": { "pattern": "(?a)\\1", "flags": "u" } - }) + } } ], "sourceType": "script", @@ -83,4 +81,4 @@ export default { } } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/9/regexp-named-group/valid-backreference-3.result.js b/tests/fixtures/ecma-version/9/regexp-named-group/valid-backreference-3.result.js index 98454551..34398eed 100644 --- a/tests/fixtures/ecma-version/9/regexp-named-group/valid-backreference-3.result.js +++ b/tests/fixtures/ecma-version/9/regexp-named-group/valid-backreference-3.result.js @@ -1,5 +1,3 @@ -import conditionalRegex from "../../../../lib/conditional-regex-value.js"; - export default { "type": "Program", "loc": { @@ -33,7 +31,7 @@ export default { 0, 26 ], - "expression": conditionalRegex({ + "expression": { "type": "Literal", "loc": { "start": { @@ -49,13 +47,13 @@ export default { 0, 26 ], - "value": null, + "value": /(?a)\k<\u0041\u0042>/, "raw": "/(?a)\\k<\\u0041\\u0042>/", "regex": { "pattern": "(?a)\\k<\\u0041\\u0042>", "flags": "" } - }) + } } ], "sourceType": "script", @@ -83,4 +81,4 @@ export default { } } ] -}; +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/9/regexp-named-group/valid-group.result.js b/tests/fixtures/ecma-version/9/regexp-named-group/valid-group.result.js index 44ca399d..37e7b2ef 100644 --- a/tests/fixtures/ecma-version/9/regexp-named-group/valid-group.result.js +++ b/tests/fixtures/ecma-version/9/regexp-named-group/valid-group.result.js @@ -1,5 +1,3 @@ -import conditionalRegex from "../../../../lib/conditional-regex-value.js"; - export default { "type": "Program", "loc": { @@ -33,7 +31,7 @@ export default { 0, 9 ], - "expression": conditionalRegex({ + "expression": { "type": "Literal", "loc": { "start": { @@ -49,13 +47,13 @@ export default { 0, 9 ], - "value": null, + "value": /(?a)/, "raw": "/(?a)/", "regex": { "pattern": "(?a)", "flags": "" } - }) + } } ], "sourceType": "script", diff --git a/tests/fixtures/ecma-version/9/regexp-named-group/valid-unicode-name-1.result.js b/tests/fixtures/ecma-version/9/regexp-named-group/valid-unicode-name-1.result.js index 7e2c0129..10bd7d97 100644 --- a/tests/fixtures/ecma-version/9/regexp-named-group/valid-unicode-name-1.result.js +++ b/tests/fixtures/ecma-version/9/regexp-named-group/valid-unicode-name-1.result.js @@ -1,5 +1,3 @@ -import conditionalRegex from "../../../../lib/conditional-regex-value.js"; - export default { "type": "Program", "loc": { @@ -33,7 +31,7 @@ export default { 0, 20 ], - "expression": conditionalRegex({ + "expression": { "type": "Literal", "loc": { "start": { @@ -49,13 +47,13 @@ export default { 0, 20 ], - "value": null, + "value": /(?<\u0041\u0042>a)/, "raw": "/(?<\\u0041\\u0042>a)/", "regex": { "pattern": "(?<\\u0041\\u0042>a)", "flags": "" } - }) + } } ], "sourceType": "script", diff --git a/tests/fixtures/ecma-version/9/regexp-named-group/valid-unicode-name-2.result.js b/tests/fixtures/ecma-version/9/regexp-named-group/valid-unicode-name-2.result.js index ed194b9f..45cc1b29 100644 --- a/tests/fixtures/ecma-version/9/regexp-named-group/valid-unicode-name-2.result.js +++ b/tests/fixtures/ecma-version/9/regexp-named-group/valid-unicode-name-2.result.js @@ -1,5 +1,3 @@ -import conditionalRegex from "../../../../lib/conditional-regex-value.js"; - export default { "type": "Program", "loc": { @@ -33,7 +31,7 @@ export default { 0, 15 ], - "expression": conditionalRegex({ + "expression": { "type": "Literal", "loc": { "start": { @@ -49,13 +47,13 @@ export default { 0, 15 ], - "value": null, + "value": /(?<\u{41}>a)/u, "raw": "/(?<\\u{41}>a)/u", "regex": { "pattern": "(?<\\u{41}>a)", "flags": "u" } - }) + } } ], "sourceType": "script", diff --git a/tests/fixtures/ecma-version/9/regexp-s-flag/s-flag.result.js b/tests/fixtures/ecma-version/9/regexp-s-flag/s-flag.result.js index 60569843..870cfc98 100644 --- a/tests/fixtures/ecma-version/9/regexp-s-flag/s-flag.result.js +++ b/tests/fixtures/ecma-version/9/regexp-s-flag/s-flag.result.js @@ -1,5 +1,3 @@ -import conditionalRegex from "../../../../lib/conditional-regex-value.js"; - export default { "type": "Program", "loc": { @@ -33,7 +31,7 @@ export default { 0, 4 ], - "expression": conditionalRegex({ + "expression": { "type": "Literal", "loc": { "start": { @@ -49,12 +47,13 @@ export default { 0, 4 ], + "value": /./s, "raw": "/./s", "regex": { "pattern": ".", "flags": "s" } - }) + } } ], "sourceType": "script", diff --git a/tests/fixtures/ecma-version/9/regexp-unicode-property-escape/valid-negative-1.result.js b/tests/fixtures/ecma-version/9/regexp-unicode-property-escape/valid-negative-1.result.js index e534dece..6be30484 100644 --- a/tests/fixtures/ecma-version/9/regexp-unicode-property-escape/valid-negative-1.result.js +++ b/tests/fixtures/ecma-version/9/regexp-unicode-property-escape/valid-negative-1.result.js @@ -1,5 +1,3 @@ -import conditionalRegex from "../../../../lib/conditional-regex-value.js"; - export default { "type": "Program", "loc": { @@ -33,7 +31,7 @@ export default { 0, 12 ], - "expression": conditionalRegex({ + "expression": { "type": "Literal", "loc": { "start": { @@ -49,13 +47,13 @@ export default { 0, 12 ], - "value": null, + "value": /\P{ASCII}/u, "raw": "/\\P{ASCII}/u", "regex": { "pattern": "\\P{ASCII}", "flags": "u" } - }) + } } ], "sourceType": "script", diff --git a/tests/fixtures/ecma-version/9/regexp-unicode-property-escape/valid-negative-2.result.js b/tests/fixtures/ecma-version/9/regexp-unicode-property-escape/valid-negative-2.result.js index 04b51db5..0acbfee3 100644 --- a/tests/fixtures/ecma-version/9/regexp-unicode-property-escape/valid-negative-2.result.js +++ b/tests/fixtures/ecma-version/9/regexp-unicode-property-escape/valid-negative-2.result.js @@ -1,5 +1,3 @@ -import conditionalRegex from "../../../../lib/conditional-regex-value.js"; - export default { "type": "Program", "loc": { @@ -33,7 +31,7 @@ export default { 0, 22 ], - "expression": conditionalRegex({ + "expression": { "type": "Literal", "loc": { "start": { @@ -49,13 +47,13 @@ export default { 0, 22 ], - "value": null, + "value": /\P{Script=Hiragana}/u, "raw": "/\\P{Script=Hiragana}/u", "regex": { "pattern": "\\P{Script=Hiragana}", "flags": "u" } - }) + } } ], "sourceType": "script", diff --git a/tests/fixtures/ecma-version/9/regexp-unicode-property-escape/valid-positive-1.result.js b/tests/fixtures/ecma-version/9/regexp-unicode-property-escape/valid-positive-1.result.js index e3f9ca95..5f54cb5a 100644 --- a/tests/fixtures/ecma-version/9/regexp-unicode-property-escape/valid-positive-1.result.js +++ b/tests/fixtures/ecma-version/9/regexp-unicode-property-escape/valid-positive-1.result.js @@ -1,5 +1,3 @@ -import conditionalRegex from "../../../../lib/conditional-regex-value.js"; - export default { "type": "Program", "loc": { @@ -33,7 +31,7 @@ export default { 0, 12 ], - "expression": conditionalRegex({ + "expression": { "type": "Literal", "loc": { "start": { @@ -49,13 +47,13 @@ export default { 0, 12 ], - "value": null, + "value": /\p{ASCII}/u, "raw": "/\\p{ASCII}/u", "regex": { "pattern": "\\p{ASCII}", "flags": "u" } - }) + } } ], "sourceType": "script", diff --git a/tests/fixtures/ecma-version/9/regexp-unicode-property-escape/valid-positive-2.result.js b/tests/fixtures/ecma-version/9/regexp-unicode-property-escape/valid-positive-2.result.js index 6b9c6c68..dd413ace 100644 --- a/tests/fixtures/ecma-version/9/regexp-unicode-property-escape/valid-positive-2.result.js +++ b/tests/fixtures/ecma-version/9/regexp-unicode-property-escape/valid-positive-2.result.js @@ -1,5 +1,3 @@ -import conditionalRegex from "../../../../lib/conditional-regex-value.js"; - export default { "type": "Program", "loc": { @@ -33,7 +31,7 @@ export default { 0, 22 ], - "expression": conditionalRegex({ + "expression": { "type": "Literal", "loc": { "start": { @@ -49,13 +47,13 @@ export default { 0, 22 ], - "value": null, + "value": /\p{Script=Hiragana}/u, "raw": "/\\p{Script=Hiragana}/u", "regex": { "pattern": "\\p{Script=Hiragana}", "flags": "u" } - }) + } } ], "sourceType": "script", diff --git a/tests/fixtures/ecma-version/9/rest-property/valid-parameter-1.result.js b/tests/fixtures/ecma-version/9/rest-property/valid-parameter-1.result.js index e70d68b8..9167cc4b 100644 --- a/tests/fixtures/ecma-version/9/rest-property/valid-parameter-1.result.js +++ b/tests/fixtures/ecma-version/9/rest-property/valid-parameter-1.result.js @@ -48,8 +48,8 @@ export default { 16 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": false, "params": [ { diff --git a/tests/fixtures/ecma-version/9/rest-property/valid-parameter-2.result.js b/tests/fixtures/ecma-version/9/rest-property/valid-parameter-2.result.js index 2dc64a25..27bca398 100644 --- a/tests/fixtures/ecma-version/9/rest-property/valid-parameter-2.result.js +++ b/tests/fixtures/ecma-version/9/rest-property/valid-parameter-2.result.js @@ -48,8 +48,8 @@ export default { 21 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": false, "params": [ { diff --git a/tests/fixtures/ecma-version/9/rest-property/valid-parameter-3.result.js b/tests/fixtures/ecma-version/9/rest-property/valid-parameter-3.result.js index c51451ae..af17053b 100644 --- a/tests/fixtures/ecma-version/9/rest-property/valid-parameter-3.result.js +++ b/tests/fixtures/ecma-version/9/rest-property/valid-parameter-3.result.js @@ -48,8 +48,8 @@ export default { 18 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": false, "params": [ { diff --git a/tests/fixtures/ecma-version/9/rest-property/valid-parameter-4.result.js b/tests/fixtures/ecma-version/9/rest-property/valid-parameter-4.result.js index 74076020..f27ee3db 100644 --- a/tests/fixtures/ecma-version/9/rest-property/valid-parameter-4.result.js +++ b/tests/fixtures/ecma-version/9/rest-property/valid-parameter-4.result.js @@ -48,8 +48,8 @@ export default { 20 ], "id": null, - "generator": false, "expression": false, + "generator": false, "async": false, "params": [ {