From 611f5c849b3ea40b955481ddc01becbefe5588ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Mon, 28 Mar 2022 22:34:23 +0200 Subject: [PATCH] Add missing semicolons in 2021-12 decorators output (#14398) --- .../src/transformer-2021-12.ts | 2 +- .../public/output.js | 2 +- .../static-public/output.js | 2 +- .../fixtures/2021-12-accessors/public/output.js | 2 +- .../2021-12-accessors/static-public/output.js | 2 +- .../2021-12-classes/inheritance/output.js | 4 ++-- .../computed-keys-same-ast/output.js | 4 ++-- .../computed-keys-same-value/output.js | 4 ++-- .../computed-keys-same-ast/output.js | 4 ++-- .../computed-keys-same-value/output.js | 4 ++-- .../default-anonymous/output.mjs | 2 +- .../2021-12-exported/default-named/output.mjs | 2 +- .../2021-12-exported/member-decorator/output.mjs | 2 +- .../fixtures/2021-12-exported/named/output.mjs | 2 +- .../2021-12-fields--to-es2015/public/output.js | 2 +- .../static-public/output.js | 2 +- .../fixtures/2021-12-fields/public/output.js | 2 +- .../2021-12-fields/static-public/output.js | 2 +- .../2021-12-getters--to-es2015/public/output.js | 2 +- .../static-public/output.js | 2 +- .../public/output.js | 4 ++-- .../static-public/output.js | 4 ++-- .../2021-12-getters-and-setters/public/output.js | 4 ++-- .../static-public/output.js | 4 ++-- .../fixtures/2021-12-getters/public/output.js | 2 +- .../2021-12-getters/static-public/output.js | 2 +- .../2021-12-methods--to-es2015/public/output.js | 2 +- .../static-public/output.js | 2 +- .../fixtures/2021-12-methods/public/output.js | 2 +- .../2021-12-methods/static-public/output.js | 2 +- .../output.js | 2 +- .../valid-expression-formats/output.js | 16 ++++++++-------- .../output.js | 4 ++-- .../valid-expression-formats/output.js | 16 ++++++++-------- .../2021-12-setters--to-es2015/public/output.js | 2 +- .../static-public/output.js | 2 +- .../fixtures/2021-12-setters/public/output.js | 2 +- .../2021-12-setters/static-public/output.js | 2 +- 38 files changed, 62 insertions(+), 62 deletions(-) diff --git a/packages/babel-plugin-proposal-decorators/src/transformer-2021-12.ts b/packages/babel-plugin-proposal-decorators/src/transformer-2021-12.ts index e748c09740cf..75d7f7d71470 100644 --- a/packages/babel-plugin-proposal-decorators/src/transformer-2021-12.ts +++ b/packages/babel-plugin-proposal-decorators/src/transformer-2021-12.ts @@ -991,7 +991,7 @@ function transformClass( // When path is a ClassExpression, path.insertBefore will convert `path` // into a SequenceExpression - path.insertBefore(assignments); + path.insertBefore(assignments.map(expr => t.expressionStatement(expr))); // Recrawl the scope to make sure new identifiers are properly synced path.scope.crawl(); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-accessors--to-es2015/public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-accessors--to-es2015/public/output.js index d914f3cd3b0d..6e5e7b644d70 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-accessors--to-es2015/public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-accessors--to-es2015/public/output.js @@ -2,7 +2,7 @@ var _init_a, _init_b, _computedKey, _init_computedKey, _initProto; const dec = () => {}; -_computedKey = 'c' +_computedKey = 'c'; var _A = /*#__PURE__*/new WeakMap(); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-accessors--to-es2015/static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-accessors--to-es2015/static-public/output.js index 333884b1c59c..f6e023618bb6 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-accessors--to-es2015/static-public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-accessors--to-es2015/static-public/output.js @@ -2,7 +2,7 @@ var _init_a, _init_b, _computedKey, _init_computedKey, _initStatic; const dec = () => {}; -_computedKey = 'c' +_computedKey = 'c'; class Foo { static get a() { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-accessors/public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-accessors/public/output.js index 78dcb770052c..0ce35a78e160 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-accessors/public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-accessors/public/output.js @@ -2,7 +2,7 @@ var _init_a, _init_b, _computedKey, _init_computedKey, _initProto; const dec = () => {}; -_computedKey = 'c' +_computedKey = 'c'; class Foo { static { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-accessors/static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-accessors/static-public/output.js index 3eb7622b70e8..03c7458b3445 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-accessors/static-public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-accessors/static-public/output.js @@ -2,7 +2,7 @@ var _init_a, _init_b, _computedKey, _init_computedKey, _initStatic; const dec = () => {}; -_computedKey = 'c' +_computedKey = 'c'; class Foo { static { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-classes/inheritance/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-classes/inheritance/output.js index 6ffb0703782e..b7dfd885d619 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-classes/inheritance/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-classes/inheritance/output.js @@ -4,7 +4,7 @@ const dec = () => {}; let _Bar; -_dec = dec1 +_dec = dec1; class Bar { static { @@ -18,7 +18,7 @@ class Bar { let _Foo; -_dec2 = dec2 +_dec2 = dec2; class Foo extends _Bar { static { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-duplicated-keys--to-es2015/computed-keys-same-ast/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-duplicated-keys--to-es2015/computed-keys-same-ast/output.js index 4886f4d297eb..6f8034d3dbfb 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-duplicated-keys--to-es2015/computed-keys-same-ast/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-duplicated-keys--to-es2015/computed-keys-same-ast/output.js @@ -2,8 +2,8 @@ var _computedKey, _computedKey2, _initProto; const dec = () => {}; -_computedKey = getKey() -_computedKey2 = getKey() +_computedKey = getKey(); +_computedKey2 = getKey(); class Foo { constructor(...args) { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-duplicated-keys--to-es2015/computed-keys-same-value/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-duplicated-keys--to-es2015/computed-keys-same-value/output.js index a7feffdbbd99..87b3d7e548ce 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-duplicated-keys--to-es2015/computed-keys-same-value/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-duplicated-keys--to-es2015/computed-keys-same-value/output.js @@ -2,8 +2,8 @@ var _computedKey, _computedKey2, _initProto; const dec = () => {}; -_computedKey = getKeyI() -_computedKey2 = getKeyJ() +_computedKey = getKeyI(); +_computedKey2 = getKeyJ(); class Foo { constructor(...args) { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-duplicated-keys/computed-keys-same-ast/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-duplicated-keys/computed-keys-same-ast/output.js index 294a15adaac3..94b356e7cd4a 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-duplicated-keys/computed-keys-same-ast/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-duplicated-keys/computed-keys-same-ast/output.js @@ -2,8 +2,8 @@ var _computedKey, _computedKey2, _initProto; const dec = () => {}; -_computedKey = getKey() -_computedKey2 = getKey() +_computedKey = getKey(); +_computedKey2 = getKey(); class Foo { static { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-duplicated-keys/computed-keys-same-value/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-duplicated-keys/computed-keys-same-value/output.js index 3a79df5344da..ad94d7045dd7 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-duplicated-keys/computed-keys-same-value/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-duplicated-keys/computed-keys-same-value/output.js @@ -2,8 +2,8 @@ var _computedKey, _computedKey2, _initProto; const dec = () => {}; -_computedKey = getKeyI() -_computedKey2 = getKeyJ() +_computedKey = getKeyI(); +_computedKey2 = getKeyJ(); class Foo { static { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-exported/default-anonymous/output.mjs b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-exported/default-anonymous/output.mjs index 4069495d7e58..ea4cbd15b879 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-exported/default-anonymous/output.mjs +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-exported/default-anonymous/output.mjs @@ -2,7 +2,7 @@ var _initClass, _dec; let _A; -_dec = dec +_dec = dec; class A { static { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-exported/default-named/output.mjs b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-exported/default-named/output.mjs index 960e68744541..a8b869834da1 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-exported/default-named/output.mjs +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-exported/default-named/output.mjs @@ -2,7 +2,7 @@ var _initClass, _dec; let _default2; -_dec = dec +_dec = dec; class _default { static { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-exported/member-decorator/output.mjs b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-exported/member-decorator/output.mjs index d2ebe06be6fc..830b9882e305 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-exported/member-decorator/output.mjs +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-exported/member-decorator/output.mjs @@ -1,6 +1,6 @@ var _dec, _init_x; -_dec = dec +_dec = dec; export class A { static { [_init_x] = babelHelpers.applyDecs(this, [[_dec, 0, "x"]], []); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-exported/named/output.mjs b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-exported/named/output.mjs index 21f340a53b63..1bf36ad70712 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-exported/named/output.mjs +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-exported/named/output.mjs @@ -2,7 +2,7 @@ var _initClass, _dec; let _A; -_dec = dec +_dec = dec; class A { static { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-fields--to-es2015/public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-fields--to-es2015/public/output.js index fa87c20e8066..3b6db8049ad5 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-fields--to-es2015/public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-fields--to-es2015/public/output.js @@ -2,7 +2,7 @@ var _init_a, _init_b, _computedKey, _init_computedKey; const dec = () => {}; -_computedKey = 'c' +_computedKey = 'c'; class Foo { constructor() { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-fields--to-es2015/static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-fields--to-es2015/static-public/output.js index 03f30649c44f..d8af3b192f0f 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-fields--to-es2015/static-public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-fields--to-es2015/static-public/output.js @@ -2,7 +2,7 @@ var _init_a, _init_b, _computedKey, _init_computedKey; const dec = () => {}; -_computedKey = 'c' +_computedKey = 'c'; class Foo {} diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-fields/public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-fields/public/output.js index 74138e9cf70b..10b18ceb236f 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-fields/public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-fields/public/output.js @@ -2,7 +2,7 @@ var _init_a, _init_b, _computedKey, _init_computedKey; const dec = () => {}; -_computedKey = 'c' +_computedKey = 'c'; class Foo { static { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-fields/static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-fields/static-public/output.js index 7f24c5944c7c..50cd8cb4ec12 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-fields/static-public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-fields/static-public/output.js @@ -2,7 +2,7 @@ var _init_a, _init_b, _computedKey, _init_computedKey; const dec = () => {}; -_computedKey = 'c' +_computedKey = 'c'; class Foo { static { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-getters--to-es2015/public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-getters--to-es2015/public/output.js index 6b82914ec5b1..2c188587731f 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-getters--to-es2015/public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-getters--to-es2015/public/output.js @@ -2,7 +2,7 @@ var _computedKey, _initProto; const dec = () => {}; -_computedKey = 'b' +_computedKey = 'b'; class Foo { constructor(...args) { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-getters--to-es2015/static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-getters--to-es2015/static-public/output.js index 87f360a260d9..99873773078a 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-getters--to-es2015/static-public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-getters--to-es2015/static-public/output.js @@ -2,7 +2,7 @@ var _computedKey, _initStatic; const dec = () => {}; -_computedKey = 'b' +_computedKey = 'b'; class Foo { static get a() { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-getters-and-setters--to-es2015/public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-getters-and-setters--to-es2015/public/output.js index 2e31ac38e30c..6cdca3698d86 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-getters-and-setters--to-es2015/public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-getters-and-setters--to-es2015/public/output.js @@ -2,8 +2,8 @@ var _computedKey, _computedKey2, _initProto; const dec = () => {}; -_computedKey = 'b' -_computedKey2 = 'b' +_computedKey = 'b'; +_computedKey2 = 'b'; class Foo { constructor(...args) { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-getters-and-setters--to-es2015/static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-getters-and-setters--to-es2015/static-public/output.js index 2cfd5e545551..53c1402f0a12 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-getters-and-setters--to-es2015/static-public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-getters-and-setters--to-es2015/static-public/output.js @@ -2,8 +2,8 @@ var _computedKey, _computedKey2, _initStatic; const dec = () => {}; -_computedKey = 'b' -_computedKey2 = 'b' +_computedKey = 'b'; +_computedKey2 = 'b'; class Foo { static get a() { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-getters-and-setters/public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-getters-and-setters/public/output.js index 9d22fada3a67..365e87a762c0 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-getters-and-setters/public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-getters-and-setters/public/output.js @@ -2,8 +2,8 @@ var _computedKey, _computedKey2, _initProto; const dec = () => {}; -_computedKey = 'b' -_computedKey2 = 'b' +_computedKey = 'b'; +_computedKey2 = 'b'; class Foo { static { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-getters-and-setters/static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-getters-and-setters/static-public/output.js index 2777d0e553c1..7f93b4b2315c 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-getters-and-setters/static-public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-getters-and-setters/static-public/output.js @@ -2,8 +2,8 @@ var _computedKey, _computedKey2, _initStatic; const dec = () => {}; -_computedKey = 'b' -_computedKey2 = 'b' +_computedKey = 'b'; +_computedKey2 = 'b'; class Foo { static { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-getters/public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-getters/public/output.js index 6ec290a3e353..40fc509d8f79 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-getters/public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-getters/public/output.js @@ -2,7 +2,7 @@ var _computedKey, _initProto; const dec = () => {}; -_computedKey = 'b' +_computedKey = 'b'; class Foo { static { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-getters/static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-getters/static-public/output.js index de0bb4f017ff..478386d7b050 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-getters/static-public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-getters/static-public/output.js @@ -2,7 +2,7 @@ var _computedKey, _initStatic; const dec = () => {}; -_computedKey = 'b' +_computedKey = 'b'; class Foo { static { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-methods--to-es2015/public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-methods--to-es2015/public/output.js index 818277441935..e7be268778f9 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-methods--to-es2015/public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-methods--to-es2015/public/output.js @@ -2,7 +2,7 @@ var _computedKey, _initProto; const dec = () => {}; -_computedKey = 'b' +_computedKey = 'b'; class Foo { constructor(...args) { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-methods--to-es2015/static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-methods--to-es2015/static-public/output.js index 68326d08fdfa..5aa7a905f6c2 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-methods--to-es2015/static-public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-methods--to-es2015/static-public/output.js @@ -2,7 +2,7 @@ var _computedKey, _initStatic; const dec = () => {}; -_computedKey = 'b' +_computedKey = 'b'; class Foo { static a() { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-methods/public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-methods/public/output.js index 729fb28176f4..c26f68b68bfa 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-methods/public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-methods/public/output.js @@ -2,7 +2,7 @@ var _computedKey, _initProto; const dec = () => {}; -_computedKey = 'b' +_computedKey = 'b'; class Foo { static { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-methods/static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-methods/static-public/output.js index d15d1734e9bf..bc80e4454da5 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-methods/static-public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-methods/static-public/output.js @@ -2,7 +2,7 @@ var _computedKey, _initStatic; const dec = () => {}; -_computedKey = 'b' +_computedKey = 'b'; class Foo { static { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-misc--to-es2015/initProto-existing-derived-constructor/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-misc--to-es2015/initProto-existing-derived-constructor/output.js index b9315f31236d..87eebc9bd2fa 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-misc--to-es2015/initProto-existing-derived-constructor/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-misc--to-es2015/initProto-existing-derived-constructor/output.js @@ -2,7 +2,7 @@ var _dec, _initProto; const dec = () => {}; -_dec = deco +_dec = deco; class A extends B { constructor() { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-misc--to-es2015/valid-expression-formats/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-misc--to-es2015/valid-expression-formats/output.js index 1e38abf10e47..a16a912e35b2 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-misc--to-es2015/valid-expression-formats/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-misc--to-es2015/valid-expression-formats/output.js @@ -4,14 +4,14 @@ const dec = () => {}; let _Foo; -_dec = call() -_dec2 = chain.expr() -_dec3 = arbitrary + expr -_dec4 = array[expr] -_dec5 = call() -_dec6 = chain.expr() -_dec7 = arbitrary + expr -_dec8 = array[expr] +_dec = call(); +_dec2 = chain.expr(); +_dec3 = arbitrary + expr; +_dec4 = array[expr]; +_dec5 = call(); +_dec6 = chain.expr(); +_dec7 = arbitrary + expr; +_dec8 = array[expr]; var _a = /*#__PURE__*/new WeakMap(); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-misc/initProto-existing-derived-constructor-multiple-super/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-misc/initProto-existing-derived-constructor-multiple-super/output.js index a2277d035d16..4cee75fb0011 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-misc/initProto-existing-derived-constructor-multiple-super/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-misc/initProto-existing-derived-constructor-multiple-super/output.js @@ -2,7 +2,7 @@ var _dec, _initProto, _dec2, _initProto2; const dec = () => {}; -_dec = deco +_dec = deco; class A extends B { static { @@ -21,7 +21,7 @@ class A extends B { } -_dec2 = deco +_dec2 = deco; class C extends B { static { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-misc/valid-expression-formats/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-misc/valid-expression-formats/output.js index 99243189adb3..22fffb33ce1e 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-misc/valid-expression-formats/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-misc/valid-expression-formats/output.js @@ -4,14 +4,14 @@ const dec = () => {}; let _Foo; -_dec = call() -_dec2 = chain.expr() -_dec3 = arbitrary + expr -_dec4 = array[expr] -_dec5 = call() -_dec6 = chain.expr() -_dec7 = arbitrary + expr -_dec8 = array[expr] +_dec = call(); +_dec2 = chain.expr(); +_dec3 = arbitrary + expr; +_dec4 = array[expr]; +_dec5 = call(); +_dec6 = chain.expr(); +_dec7 = arbitrary + expr; +_dec8 = array[expr]; class Foo { static { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-setters--to-es2015/public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-setters--to-es2015/public/output.js index 82e2c3e82de9..4fde2b7cc78e 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-setters--to-es2015/public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-setters--to-es2015/public/output.js @@ -2,7 +2,7 @@ var _computedKey, _initProto; const dec = () => {}; -_computedKey = 'b' +_computedKey = 'b'; class Foo { constructor(...args) { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-setters--to-es2015/static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-setters--to-es2015/static-public/output.js index 9a9c4427a87e..3db0487d87c0 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-setters--to-es2015/static-public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-setters--to-es2015/static-public/output.js @@ -2,7 +2,7 @@ var _computedKey, _initStatic; const dec = () => {}; -_computedKey = 'b' +_computedKey = 'b'; class Foo { static set a(v) { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-setters/public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-setters/public/output.js index d13084ea6431..554cc118d218 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-setters/public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-setters/public/output.js @@ -2,7 +2,7 @@ var _computedKey, _initProto; const dec = () => {}; -_computedKey = 'b' +_computedKey = 'b'; class Foo { static { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-setters/static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-setters/static-public/output.js index a059f040662e..ef701f84dd25 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-setters/static-public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-setters/static-public/output.js @@ -2,7 +2,7 @@ var _computedKey, _initStatic; const dec = () => {}; -_computedKey = 'b' +_computedKey = 'b'; class Foo { static {