From 3c08346b05106f856be27f5e582c157e8acb93ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Mon, 17 Apr 2023 18:32:49 +0200 Subject: [PATCH] Skip array with single decorator --- packages/babel-helpers/src/helpers-generated.ts | 2 +- packages/babel-helpers/src/helpers/applyDecs2303.js | 6 +++++- .../src/transformer-2023-03.ts | 4 +--- .../fixtures/2023-03-accessors--to-es2015/private/output.js | 2 +- .../fixtures/2023-03-accessors--to-es2015/public/output.js | 2 +- .../2023-03-accessors--to-es2015/static-private/output.js | 2 +- .../2023-03-accessors--to-es2015/static-public/output.js | 2 +- .../test/fixtures/2023-03-accessors/private/output.js | 2 +- .../test/fixtures/2023-03-accessors/public/output.js | 2 +- .../fixtures/2023-03-accessors/static-private/output.js | 2 +- .../test/fixtures/2023-03-accessors/static-public/output.js | 2 +- .../super-in-private-accessor/output.js | 2 +- .../super-in-private-method/output.js | 2 +- .../decorator-access-modified-fields/output.js | 2 +- .../decorator-access-modified-methods/output.js | 2 +- .../decorator-access-modified-fields/output.js | 2 +- .../decorator-access-modified-methods/output.js | 2 +- .../computed-keys-same-ast/output.js | 2 +- .../computed-keys-same-value/output.js | 2 +- .../method-and-field/output.js | 2 +- .../methods-with-same-key/output.js | 2 +- .../computed-keys-same-ast/output.js | 2 +- .../computed-keys-same-value/output.js | 2 +- .../2023-03-duplicated-keys/method-and-field/output.js | 2 +- .../2023-03-duplicated-keys/methods-with-same-key/output.js | 2 +- .../fixtures/2023-03-exported/member-decorator/output.mjs | 2 +- .../fixtures/2023-03-fields--to-es2015/private/output.js | 2 +- .../fixtures/2023-03-fields--to-es2015/public/output.js | 2 +- .../2023-03-fields--to-es2015/static-private/output.js | 2 +- .../2023-03-fields--to-es2015/static-public/output.js | 2 +- .../test/fixtures/2023-03-fields/private/output.js | 2 +- .../test/fixtures/2023-03-fields/public/output.js | 2 +- .../test/fixtures/2023-03-fields/static-private/output.js | 2 +- .../test/fixtures/2023-03-fields/static-public/output.js | 2 +- .../fixtures/2023-03-getters--to-es2015/private/output.js | 2 +- .../fixtures/2023-03-getters--to-es2015/public/output.js | 2 +- .../2023-03-getters--to-es2015/static-private/output.js | 2 +- .../2023-03-getters--to-es2015/static-public/output.js | 2 +- .../private/output.js | 4 ++-- .../2023-03-getters-and-setters--to-es2015/public/output.js | 2 +- .../static-private/output.js | 4 ++-- .../static-public/output.js | 2 +- .../fixtures/2023-03-getters-and-setters/private/output.js | 4 ++-- .../fixtures/2023-03-getters-and-setters/public/output.js | 2 +- .../2023-03-getters-and-setters/static-private/output.js | 4 ++-- .../2023-03-getters-and-setters/static-public/output.js | 2 +- .../test/fixtures/2023-03-getters/private/output.js | 2 +- .../test/fixtures/2023-03-getters/public/output.js | 2 +- .../test/fixtures/2023-03-getters/static-private/output.js | 2 +- .../test/fixtures/2023-03-getters/static-public/output.js | 2 +- .../fixtures/2023-03-methods--to-es2015/private/output.js | 2 +- .../fixtures/2023-03-methods--to-es2015/public/output.js | 2 +- .../2023-03-methods--to-es2015/static-private/output.js | 2 +- .../2023-03-methods--to-es2015/static-public/output.js | 2 +- .../test/fixtures/2023-03-methods/private/output.js | 2 +- .../test/fixtures/2023-03-methods/public/output.js | 2 +- .../test/fixtures/2023-03-methods/static-private/output.js | 2 +- .../test/fixtures/2023-03-methods/static-public/output.js | 2 +- .../initProto-existing-derived-constructor/output.js | 2 +- .../valid-expression-formats/output.js | 2 +- .../test/fixtures/2023-03-misc/all-decorators/output.js | 2 +- .../output.js | 4 ++-- .../initProto-existing-derived-constructor/output.js | 2 +- .../2023-03-misc/super-in-private-accessor/output.js | 2 +- .../fixtures/2023-03-misc/super-in-private-method/output.js | 2 +- .../fixtures/2023-03-setters--to-es2015/private/output.js | 2 +- .../fixtures/2023-03-setters--to-es2015/public/output.js | 2 +- .../2023-03-setters--to-es2015/static-private/output.js | 2 +- .../2023-03-setters--to-es2015/static-public/output.js | 2 +- .../test/fixtures/2023-03-setters/private/output.js | 2 +- .../test/fixtures/2023-03-setters/public/output.js | 2 +- .../test/fixtures/2023-03-setters/static-private/output.js | 2 +- .../test/fixtures/2023-03-setters/static-public/output.js | 2 +- 73 files changed, 82 insertions(+), 80 deletions(-) diff --git a/packages/babel-helpers/src/helpers-generated.ts b/packages/babel-helpers/src/helpers-generated.ts index 453546618ac2..22cf76f632ed 100644 --- a/packages/babel-helpers/src/helpers-generated.ts +++ b/packages/babel-helpers/src/helpers-generated.ts @@ -39,7 +39,7 @@ export default Object.freeze({ ), applyDecs2303: helper( "7.21.0", - 'import checkInRHS from"checkInRHS";function createAddInitializerMethod(initializers,decoratorFinishedRef){return function(initializer){assertNotFinished(decoratorFinishedRef,"addInitializer"),assertCallable(initializer,"An initializer"),initializers.push(initializer)}}function assertInstanceIfPrivate(has,target){if(!has(target))throw new TypeError("Attempted to access private element on non-instance")}function memberDec(dec,thisArg,name,desc,initializers,kind,isStatic,isPrivate,value,hasPrivateBrand){var kindStr;switch(kind){case 1:kindStr="accessor";break;case 2:kindStr="method";break;case 3:kindStr="getter";break;case 4:kindStr="setter";break;default:kindStr="field"}var get,set,ctx={kind:kindStr,name:isPrivate?"#"+name:name,static:isStatic,private:isPrivate},decoratorFinishedRef={v:!1};if(0!==kind&&(ctx.addInitializer=createAddInitializerMethod(initializers,decoratorFinishedRef)),isPrivate||0!==kind&&2!==kind)if(2===kind)get=function(target){return assertInstanceIfPrivate(hasPrivateBrand,target),desc.value};else{var t=0===kind||1===kind;(t||3===kind)&&(get=isPrivate?function(target){return assertInstanceIfPrivate(hasPrivateBrand,target),desc.get.call(target)}:function(target){return desc.get.call(target)}),(t||4===kind)&&(set=isPrivate?function(target,value){assertInstanceIfPrivate(hasPrivateBrand,target),desc.set.call(target,value)}:function(target,value){desc.set.call(target,value)})}else get=function(target){return target[name]},0===kind&&(set=function(target,v){target[name]=v});var has=isPrivate?hasPrivateBrand.bind():function(target){return name in target};ctx.access=get&&set?{get:get,set:set,has:has}:get?{get:get,has:has}:{set:set,has:has};try{return dec.call(thisArg,value,ctx)}finally{decoratorFinishedRef.v=!0}}function assertNotFinished(decoratorFinishedRef,fnName){if(decoratorFinishedRef.v)throw new Error("attempted to call "+fnName+" after decoration was finished")}function assertCallable(fn,hint){if("function"!=typeof fn)throw new TypeError(hint+" must be a function")}function assertValidReturnValue(kind,value){var type=typeof value;if(1===kind){if("object"!==type||null===value)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==value.get&&assertCallable(value.get,"accessor.get"),void 0!==value.set&&assertCallable(value.set,"accessor.set"),void 0!==value.init&&assertCallable(value.init,"accessor.init")}else if("function"!==type){var hint;throw hint=0===kind?"field":5===kind?"class":"method",new TypeError(hint+" decorators must return a function or void 0")}}function curryThis1(fn){return function(){return fn(this)}}function curryThis2(fn){return function(value){fn(this,value)}}function applyMemberDec(ret,base,decInfo,decoratorsHaveThis,name,kind,isStatic,isPrivate,initializers,hasPrivateBrand){var desc,init,value,newValue,get,set,decs=decInfo[0];isPrivate?desc=0===kind||1===kind?{get:curryThis1(decInfo[3]),set:curryThis2(decInfo[4])}:3===kind?{get:decInfo[3]}:4===kind?{set:decInfo[3]}:{value:decInfo[3]}:0!==kind&&(desc=Object.getOwnPropertyDescriptor(base,name)),1===kind?value={get:desc.get,set:desc.set}:2===kind?value=desc.value:3===kind?value=desc.get:4===kind&&(value=desc.set);for(var inc=decoratorsHaveThis?2:1,i=decs.length-1;i>=0;i-=inc){var newInit;if(void 0!==(newValue=memberDec(decs[i],decoratorsHaveThis?decs[i-1]:void 0,name,desc,initializers,kind,isStatic,isPrivate,value,hasPrivateBrand)))assertValidReturnValue(kind,newValue),0===kind?newInit=newValue:1===kind?(newInit=newValue.init,get=newValue.get||value.get,set=newValue.set||value.set,value={get:get,set:set}):value=newValue,void 0!==newInit&&(void 0===init?init=newInit:"function"==typeof init?init=[init,newInit]:init.push(newInit))}if(0===kind||1===kind){if(void 0===init)init=function(instance,init){return init};else if("function"!=typeof init){var ownInitializers=init;init=function(instance,init){for(var value=init,i=0;i3,decoratorsHaveThis=16&kind,isStatic=!!(8&kind),hasPrivateBrand=instanceBrand;if(kind&=7,isStatic?(base=Class,0!==kind&&(initializers=staticInitializers=staticInitializers||[]),isPrivate&&!staticBrand&&(staticBrand=function(_){return checkInRHS(_)===Class}),hasPrivateBrand=staticBrand):(base=Class.prototype,0!==kind&&(initializers=protoInitializers=protoInitializers||[])),0!==kind&&!isPrivate){var existingNonFields=isStatic?existingStaticNonFields:existingProtoNonFields,existingKind=existingNonFields.get(name)||0;if(!0===existingKind||3===existingKind&&4!==kind||4===existingKind&&3!==kind)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+name);!existingKind&&kind>2?existingNonFields.set(name,kind):existingNonFields.set(name,!0)}applyMemberDec(ret,base,decInfo,decoratorsHaveThis,name,kind,isStatic,isPrivate,initializers,hasPrivateBrand)}}return pushInitializers(ret,protoInitializers),pushInitializers(ret,staticInitializers),ret}function pushInitializers(ret,initializers){initializers&&ret.push((function(instance){for(var i=0;i0){for(var initializers=[],newClass=targetClass,name=targetClass.name,inc=decoratorsHaveThis?2:1,i=classDecs.length-1;i>=0;i-=inc){var decoratorFinishedRef={v:!1};try{var nextNewClass=classDecs[i].call(decoratorsHaveThis?classDecs[i-1]:void 0,newClass,{kind:"class",name:name,addInitializer:createAddInitializerMethod(initializers,decoratorFinishedRef)})}finally{decoratorFinishedRef.v=!0}void 0!==nextNewClass&&(assertValidReturnValue(5,nextNewClass),newClass=nextNewClass)}return[newClass,function(){for(var i=0;i=0;i-=inc){var newInit;if(void 0!==(newValue=memberDec(decs[i],decoratorsHaveThis?decs[i-1]:void 0,name,desc,initializers,kind,isStatic,isPrivate,value,hasPrivateBrand)))assertValidReturnValue(kind,newValue),0===kind?newInit=newValue:1===kind?(newInit=newValue.init,get=newValue.get||value.get,set=newValue.set||value.set,value={get:get,set:set}):value=newValue,void 0!==newInit&&(void 0===init?init=newInit:"function"==typeof init?init=[init,newInit]:init.push(newInit))}if(0===kind||1===kind){if(void 0===init)init=function(instance,init){return init};else if("function"!=typeof init){var ownInitializers=init;init=function(instance,init){for(var value=init,i=0;i3,decoratorsHaveThis=16&kind,isStatic=!!(8&kind),hasPrivateBrand=instanceBrand;if(kind&=7,isStatic?(base=Class,0!==kind&&(initializers=staticInitializers=staticInitializers||[]),isPrivate&&!staticBrand&&(staticBrand=function(_){return checkInRHS(_)===Class}),hasPrivateBrand=staticBrand):(base=Class.prototype,0!==kind&&(initializers=protoInitializers=protoInitializers||[])),0!==kind&&!isPrivate){var existingNonFields=isStatic?existingStaticNonFields:existingProtoNonFields,existingKind=existingNonFields.get(name)||0;if(!0===existingKind||3===existingKind&&4!==kind||4===existingKind&&3!==kind)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+name);!existingKind&&kind>2?existingNonFields.set(name,kind):existingNonFields.set(name,!0)}applyMemberDec(ret,base,decInfo,decoratorsHaveThis,name,kind,isStatic,isPrivate,initializers,hasPrivateBrand)}}return pushInitializers(ret,protoInitializers),pushInitializers(ret,staticInitializers),ret}function pushInitializers(ret,initializers){initializers&&ret.push((function(instance){for(var i=0;i0){for(var initializers=[],newClass=targetClass,name=targetClass.name,inc=decoratorsHaveThis?2:1,i=classDecs.length-1;i>=0;i-=inc){var decoratorFinishedRef={v:!1};try{var nextNewClass=classDecs[i].call(decoratorsHaveThis?classDecs[i-1]:void 0,newClass,{kind:"class",name:name,addInitializer:createAddInitializerMethod(initializers,decoratorFinishedRef)})}finally{decoratorFinishedRef.v=!0}void 0!==nextNewClass&&(assertValidReturnValue(5,nextNewClass),newClass=nextNewClass)}return[newClass,function(){for(var i=0;i babelHelpers.classPrivateFieldGet(o, _A), (o, v) => babelHelpers.classPrivateFieldSet(o, _A, v)], [[dec], 1, "b", o => babelHelpers.classPrivateFieldGet(o, _B), (o, v) => babelHelpers.classPrivateFieldSet(o, _B, v)]], [], 0, _ => _a.has(babelHelpers.checkInRHS(_))).e; +[_init_a, _get_a, _set_a, _init_b, _get_b, _set_b, _initProto] = babelHelpers.applyDecs2303(Foo, [[dec, 1, "a", o => babelHelpers.classPrivateFieldGet(o, _A), (o, v) => babelHelpers.classPrivateFieldSet(o, _A, v)], [dec, 1, "b", o => babelHelpers.classPrivateFieldGet(o, _B), (o, v) => babelHelpers.classPrivateFieldSet(o, _B, v)]], [], 0, _ => _a.has(babelHelpers.checkInRHS(_))).e; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/public/output.js index 5bce0150b22c..22dc762cb4e8 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/public/output.js @@ -38,4 +38,4 @@ class Foo { babelHelpers.classPrivateFieldSet(this, _C, v); } } -[_init_a, _init_b, _init_computedKey, _initProto] = babelHelpers.applyDecs2303(Foo, [[[dec], 1, "a"], [[dec], 1, "b"], [[dec], 1, _computedKey]], []).e; +[_init_a, _init_b, _init_computedKey, _initProto] = babelHelpers.applyDecs2303(Foo, [[dec, 1, "a"], [dec, 1, "b"], [dec, 1, _computedKey]], []).e; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/static-private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/static-private/output.js index 90ffa5e35289..85e5b6909c33 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/static-private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/static-private/output.js @@ -27,7 +27,7 @@ function _get_b2() { return _get_b(this); } (() => { - [_init_a, _get_a, _set_a, _init_b, _get_b, _set_b, _initStatic] = babelHelpers.applyDecs2303(Foo, [[[dec], 9, "a", o => babelHelpers.classStaticPrivateFieldSpecGet(o, Foo, _A), (o, v) => babelHelpers.classStaticPrivateFieldSpecSet(o, Foo, _A, v)], [[dec], 9, "b", o => babelHelpers.classStaticPrivateFieldSpecGet(o, Foo, _B), (o, v) => babelHelpers.classStaticPrivateFieldSpecSet(o, Foo, _B, v)]], []).e; + [_init_a, _get_a, _set_a, _init_b, _get_b, _set_b, _initStatic] = babelHelpers.applyDecs2303(Foo, [[dec, 9, "a", o => babelHelpers.classStaticPrivateFieldSpecGet(o, Foo, _A), (o, v) => babelHelpers.classStaticPrivateFieldSpecSet(o, Foo, _A, v)], [dec, 9, "b", o => babelHelpers.classStaticPrivateFieldSpecGet(o, Foo, _B), (o, v) => babelHelpers.classStaticPrivateFieldSpecSet(o, Foo, _B, v)]], []).e; _initStatic(Foo); })(); var _A = { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/static-public/output.js index 1d5d0992f421..9289a1a1890b 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/static-public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors--to-es2015/static-public/output.js @@ -22,7 +22,7 @@ class Foo { } } (() => { - [_init_a, _init_b, _init_computedKey, _initStatic] = babelHelpers.applyDecs2303(Foo, [[[dec], 9, "a"], [[dec], 9, "b"], [[dec], 9, _computedKey]], []).e; + [_init_a, _init_b, _init_computedKey, _initStatic] = babelHelpers.applyDecs2303(Foo, [[dec, 9, "a"], [dec, 9, "b"], [dec, 9, _computedKey]], []).e; _initStatic(Foo); })(); var _A = { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/private/output.js index 0b6dc60e7e89..7e6aca54de41 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/private/output.js @@ -2,7 +2,7 @@ var _init_a, _get_a, _set_a, _init_b, _get_b, _set_b, _initProto; const dec = () => {}; class Foo { static { - [_init_a, _get_a, _set_a, _init_b, _get_b, _set_b, _initProto] = babelHelpers.applyDecs2303(this, [[[dec], 1, "a", o => o.#A, (o, v) => o.#A = v], [[dec], 1, "b", o => o.#B, (o, v) => o.#B = v]], [], 0, _ => #a in _).e; + [_init_a, _get_a, _set_a, _init_b, _get_b, _set_b, _initProto] = babelHelpers.applyDecs2303(this, [[dec, 1, "a", o => o.#A, (o, v) => o.#A = v], [dec, 1, "b", o => o.#B, (o, v) => o.#B = v]], [], 0, _ => #a in _).e; } #A = (_initProto(this), _init_a(this)); set #a(v) { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/public/output.js index 6eaddbf76fe3..c8dd2991237c 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/public/output.js @@ -3,7 +3,7 @@ const dec = () => {}; _computedKey = 'c'; class Foo { static { - [_init_a, _init_b, _init_computedKey, _initProto] = babelHelpers.applyDecs2303(this, [[[dec], 1, "a"], [[dec], 1, "b"], [[dec], 1, _computedKey]], []).e; + [_init_a, _init_b, _init_computedKey, _initProto] = babelHelpers.applyDecs2303(this, [[dec, 1, "a"], [dec, 1, "b"], [dec, 1, _computedKey]], []).e; } #A = (_initProto(this), _init_a(this)); get a() { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/static-private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/static-private/output.js index b212655fcbb5..2521ca9eceaa 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/static-private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/static-private/output.js @@ -2,7 +2,7 @@ var _init_a, _get_a, _set_a, _init_b, _get_b, _set_b, _initStatic; const dec = () => {}; class Foo { static { - [_init_a, _get_a, _set_a, _init_b, _get_b, _set_b, _initStatic] = babelHelpers.applyDecs2303(this, [[[dec], 9, "a", o => o.#A, (o, v) => o.#A = v], [[dec], 9, "b", o => o.#B, (o, v) => o.#B = v]], []).e; + [_init_a, _get_a, _set_a, _init_b, _get_b, _set_b, _initStatic] = babelHelpers.applyDecs2303(this, [[dec, 9, "a", o => o.#A, (o, v) => o.#A = v], [dec, 9, "b", o => o.#B, (o, v) => o.#B = v]], []).e; _initStatic(this); } static #A = _init_a(this); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/static-public/output.js index a033c974ca33..aa2dca77ccc4 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/static-public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-accessors/static-public/output.js @@ -3,7 +3,7 @@ const dec = () => {}; _computedKey = 'c'; class Foo { static { - [_init_a, _init_b, _init_computedKey, _initStatic] = babelHelpers.applyDecs2303(this, [[[dec], 9, "a"], [[dec], 9, "b"], [[dec], 9, _computedKey]], []).e; + [_init_a, _init_b, _init_computedKey, _initStatic] = babelHelpers.applyDecs2303(this, [[dec, 9, "a"], [dec, 9, "b"], [dec, 9, _computedKey]], []).e; _initStatic(this); } static #A = _init_a(this); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-assumption-constantSuper/super-in-private-accessor/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-assumption-constantSuper/super-in-private-accessor/output.js index a530b18a7f6d..df619e2fc0bb 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-assumption-constantSuper/super-in-private-accessor/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-assumption-constantSuper/super-in-private-accessor/output.js @@ -2,7 +2,7 @@ var _call_x, _initProto; const dec = () => {}; class Foo extends Bar { static { - [_call_x, _initProto] = babelHelpers.applyDecs2303(this, [[[dec], 3, "x", function () { + [_call_x, _initProto] = babelHelpers.applyDecs2303(this, [[dec, 3, "x", function () { return Bar.prototype.foo.call(this); }]], [], 0, _ => #x in _).e; } diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-assumption-constantSuper/super-in-private-method/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-assumption-constantSuper/super-in-private-method/output.js index b59dd576492a..147825dd468b 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-assumption-constantSuper/super-in-private-method/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-assumption-constantSuper/super-in-private-method/output.js @@ -2,7 +2,7 @@ var _call_x, _initProto; const dec = () => {}; class Foo extends Bar { static { - [_call_x, _initProto] = babelHelpers.applyDecs2303(this, [[[dec], 2, "x", function () { + [_call_x, _initProto] = babelHelpers.applyDecs2303(this, [[dec, 2, "x", function () { return Bar.prototype.foo.call(this); }]], [], 0, _ => #x in _).e; } diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/decorator-access-modified-fields/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/decorator-access-modified-fields/output.js index 6f408d3c2f2a..7e214c498427 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/decorator-access-modified-fields/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/decorator-access-modified-fields/output.js @@ -14,5 +14,5 @@ class C { ({ e: [_init_m], c: [_C, _initClass] -} = babelHelpers.applyDecs2303(C, [[[memberDec], 0, "m"]], [classDec])); +} = babelHelpers.applyDecs2303(C, [[memberDec, 0, "m"]], [classDec])); _initClass(); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/decorator-access-modified-methods/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/decorator-access-modified-methods/output.js index 7756495b8b17..b20c78d9814b 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/decorator-access-modified-methods/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes--to-es2015/decorator-access-modified-methods/output.js @@ -15,5 +15,5 @@ class C { ({ e: [_initProto], c: [_C, _initClass] -} = babelHelpers.applyDecs2303(C, [[[memberDec], 2, "m"]], [classDec])); +} = babelHelpers.applyDecs2303(C, [[memberDec, 2, "m"]], [classDec])); _initClass(); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/decorator-access-modified-fields/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/decorator-access-modified-fields/output.js index 276068382a89..439521f4f065 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/decorator-access-modified-fields/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/decorator-access-modified-fields/output.js @@ -11,7 +11,7 @@ class C { ({ e: [_init_m], c: [_C, _initClass] - } = babelHelpers.applyDecs2303(this, [[[memberDec], 0, "m"]], [classDec])); + } = babelHelpers.applyDecs2303(this, [[memberDec, 0, "m"]], [classDec])); } m = _init_m(this); static { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/decorator-access-modified-methods/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/decorator-access-modified-methods/output.js index 94d54e626ec2..e9b3ade00991 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/decorator-access-modified-methods/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-classes/decorator-access-modified-methods/output.js @@ -11,7 +11,7 @@ class C { ({ e: [_initProto], c: [_C, _initClass] - } = babelHelpers.applyDecs2303(this, [[[memberDec], 2, "m"]], [classDec])); + } = babelHelpers.applyDecs2303(this, [[memberDec, 2, "m"]], [classDec])); } constructor(...args) { _initProto(this); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/computed-keys-same-ast/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/computed-keys-same-ast/output.js index 89be29add86e..7ddef3be40d9 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/computed-keys-same-ast/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/computed-keys-same-ast/output.js @@ -13,4 +13,4 @@ class Foo { return 2; } } -[_initProto] = babelHelpers.applyDecs2303(Foo, [[[dec], 2, _computedKey], [[dec], 2, _computedKey2]], []).e; +[_initProto] = babelHelpers.applyDecs2303(Foo, [[dec, 2, _computedKey], [dec, 2, _computedKey2]], []).e; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/computed-keys-same-value/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/computed-keys-same-value/output.js index 9d82d81c9958..9c9448835538 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/computed-keys-same-value/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/computed-keys-same-value/output.js @@ -13,4 +13,4 @@ class Foo { return 2; } } -[_initProto] = babelHelpers.applyDecs2303(Foo, [[[dec], 2, _computedKey], [[dec], 2, _computedKey2]], []).e; +[_initProto] = babelHelpers.applyDecs2303(Foo, [[dec, 2, _computedKey], [dec, 2, _computedKey2]], []).e; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/method-and-field/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/method-and-field/output.js index 43479f097249..adc3006a8190 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/method-and-field/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/method-and-field/output.js @@ -8,4 +8,4 @@ class Foo { return 1; } } -[_init_a, _initProto] = babelHelpers.applyDecs2303(Foo, [[[dec], 2, "a"], [[dec], 0, "a"]], []).e; +[_init_a, _initProto] = babelHelpers.applyDecs2303(Foo, [[dec, 2, "a"], [dec, 0, "a"]], []).e; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/methods-with-same-key/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/methods-with-same-key/output.js index 2ce72028d6b8..3fe80ca58e17 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/methods-with-same-key/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys--to-es2015/methods-with-same-key/output.js @@ -11,4 +11,4 @@ class Foo { return 2; } } -[_initProto] = babelHelpers.applyDecs2303(Foo, [[[dec], 2, "a"], [[dec], 2, "a"]], []).e; +[_initProto] = babelHelpers.applyDecs2303(Foo, [[dec, 2, "a"], [dec, 2, "a"]], []).e; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/computed-keys-same-ast/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/computed-keys-same-ast/output.js index 4871c6b6a614..b409741c95c1 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/computed-keys-same-ast/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/computed-keys-same-ast/output.js @@ -4,7 +4,7 @@ _computedKey = getKey(); _computedKey2 = getKey(); class Foo { static { - [_initProto] = babelHelpers.applyDecs2303(this, [[[dec], 2, _computedKey], [[dec], 2, _computedKey2]], []).e; + [_initProto] = babelHelpers.applyDecs2303(this, [[dec, 2, _computedKey], [dec, 2, _computedKey2]], []).e; } constructor(...args) { _initProto(this); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/computed-keys-same-value/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/computed-keys-same-value/output.js index f077d14382d9..00bd162f0999 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/computed-keys-same-value/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/computed-keys-same-value/output.js @@ -4,7 +4,7 @@ _computedKey = getKeyI(); _computedKey2 = getKeyJ(); class Foo { static { - [_initProto] = babelHelpers.applyDecs2303(this, [[[dec], 2, _computedKey], [[dec], 2, _computedKey2]], []).e; + [_initProto] = babelHelpers.applyDecs2303(this, [[dec, 2, _computedKey], [dec, 2, _computedKey2]], []).e; } constructor(...args) { _initProto(this); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/method-and-field/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/method-and-field/output.js index cb8dea3db5ce..53f2911d5016 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/method-and-field/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/method-and-field/output.js @@ -2,7 +2,7 @@ var _init_a, _initProto; const dec = () => {}; class Foo { static { - [_init_a, _initProto] = babelHelpers.applyDecs2303(this, [[[dec], 2, "a"], [[dec], 0, "a"]], []).e; + [_init_a, _initProto] = babelHelpers.applyDecs2303(this, [[dec, 2, "a"], [dec, 0, "a"]], []).e; } a = (_initProto(this), _init_a(this, 123)); a() { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/methods-with-same-key/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/methods-with-same-key/output.js index 198742f6dab1..427a72d2aaf6 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/methods-with-same-key/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-duplicated-keys/methods-with-same-key/output.js @@ -2,7 +2,7 @@ var _initProto; const dec = () => {}; class Foo { static { - [_initProto] = babelHelpers.applyDecs2303(this, [[[dec], 2, "a"], [[dec], 2, "a"]], []).e; + [_initProto] = babelHelpers.applyDecs2303(this, [[dec, 2, "a"], [dec, 2, "a"]], []).e; } constructor(...args) { _initProto(this); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-exported/member-decorator/output.mjs b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-exported/member-decorator/output.mjs index f1281d2a0a4f..6a95338049fa 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-exported/member-decorator/output.mjs +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-exported/member-decorator/output.mjs @@ -2,7 +2,7 @@ var _dec, _init_x; _dec = dec; export class A { static { - [_init_x] = babelHelpers.applyDecs2303(this, [[[_dec], 0, "x"]], []).e; + [_init_x] = babelHelpers.applyDecs2303(this, [[_dec, 0, "x"]], []).e; } x = _init_x(this); } diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/private/output.js index 58fca80b5a6a..09e5e8b4588e 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/private/output.js @@ -14,4 +14,4 @@ class Foo { }); } } -[_init_a, _init_b] = babelHelpers.applyDecs2303(Foo, [[[dec], 0, "a", o => babelHelpers.classPrivateFieldGet(o, _a), (o, v) => babelHelpers.classPrivateFieldSet(o, _a, v)], [[dec], 0, "b", o => babelHelpers.classPrivateFieldGet(o, _b), (o, v) => babelHelpers.classPrivateFieldSet(o, _b, v)]], [], 0, _ => _b.has(babelHelpers.checkInRHS(_))).e; +[_init_a, _init_b] = babelHelpers.applyDecs2303(Foo, [[dec, 0, "a", o => babelHelpers.classPrivateFieldGet(o, _a), (o, v) => babelHelpers.classPrivateFieldSet(o, _a, v)], [dec, 0, "b", o => babelHelpers.classPrivateFieldGet(o, _b), (o, v) => babelHelpers.classPrivateFieldSet(o, _b, v)]], [], 0, _ => _b.has(babelHelpers.checkInRHS(_))).e; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/public/output.js index f7978fe9c7e3..a022b9921fcb 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/public/output.js @@ -8,4 +8,4 @@ class Foo { babelHelpers.defineProperty(this, _computedKey, _init_computedKey(this, 456)); } } -[_init_a, _init_b, _init_computedKey] = babelHelpers.applyDecs2303(Foo, [[[dec], 0, "a"], [[dec], 0, "b"], [[dec], 0, _computedKey]], []).e; +[_init_a, _init_b, _init_computedKey] = babelHelpers.applyDecs2303(Foo, [[dec, 0, "a"], [dec, 0, "b"], [dec, 0, _computedKey]], []).e; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/static-private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/static-private/output.js index 42ec565d4e43..600bc4ed58c7 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/static-private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/static-private/output.js @@ -1,7 +1,7 @@ var _init_a, _init_b; const dec = () => {}; class Foo {} -[_init_a, _init_b] = babelHelpers.applyDecs2303(Foo, [[[dec], 8, "a", o => babelHelpers.classStaticPrivateFieldSpecGet(o, Foo, _a), (o, v) => babelHelpers.classStaticPrivateFieldSpecSet(o, Foo, _a, v)], [[dec], 8, "b", o => babelHelpers.classStaticPrivateFieldSpecGet(o, Foo, _b), (o, v) => babelHelpers.classStaticPrivateFieldSpecSet(o, Foo, _b, v)]], []).e; +[_init_a, _init_b] = babelHelpers.applyDecs2303(Foo, [[dec, 8, "a", o => babelHelpers.classStaticPrivateFieldSpecGet(o, Foo, _a), (o, v) => babelHelpers.classStaticPrivateFieldSpecSet(o, Foo, _a, v)], [dec, 8, "b", o => babelHelpers.classStaticPrivateFieldSpecGet(o, Foo, _b), (o, v) => babelHelpers.classStaticPrivateFieldSpecSet(o, Foo, _b, v)]], []).e; var _a = { writable: true, value: _init_a(Foo) diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/static-public/output.js index 73178097f283..4d58d500c721 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/static-public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields--to-es2015/static-public/output.js @@ -2,7 +2,7 @@ var _init_a, _init_b, _computedKey, _init_computedKey; const dec = () => {}; _computedKey = 'c'; class Foo {} -[_init_a, _init_b, _init_computedKey] = babelHelpers.applyDecs2303(Foo, [[[dec], 8, "a"], [[dec], 8, "b"], [[dec], 8, _computedKey]], []).e; +[_init_a, _init_b, _init_computedKey] = babelHelpers.applyDecs2303(Foo, [[dec, 8, "a"], [dec, 8, "b"], [dec, 8, _computedKey]], []).e; babelHelpers.defineProperty(Foo, "a", _init_a(Foo)); babelHelpers.defineProperty(Foo, "b", _init_b(Foo, 123)); babelHelpers.defineProperty(Foo, _computedKey, _init_computedKey(Foo, 456)); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/private/output.js index 991832724286..b157c17a1579 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/private/output.js @@ -2,7 +2,7 @@ var _init_a, _init_b; const dec = () => {}; class Foo { static { - [_init_a, _init_b] = babelHelpers.applyDecs2303(this, [[[dec], 0, "a", o => o.#a, (o, v) => o.#a = v], [[dec], 0, "b", o => o.#b, (o, v) => o.#b = v]], [], 0, _ => #b in _).e; + [_init_a, _init_b] = babelHelpers.applyDecs2303(this, [[dec, 0, "a", o => o.#a, (o, v) => o.#a = v], [dec, 0, "b", o => o.#b, (o, v) => o.#b = v]], [], 0, _ => #b in _).e; } #a = _init_a(this); #b = _init_b(this, 123); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/public/output.js index c77534e65d22..d654f2719616 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/public/output.js @@ -3,7 +3,7 @@ const dec = () => {}; _computedKey = 'c'; class Foo { static { - [_init_a, _init_b, _init_computedKey] = babelHelpers.applyDecs2303(this, [[[dec], 0, "a"], [[dec], 0, "b"], [[dec], 0, _computedKey]], []).e; + [_init_a, _init_b, _init_computedKey] = babelHelpers.applyDecs2303(this, [[dec, 0, "a"], [dec, 0, "b"], [dec, 0, _computedKey]], []).e; } a = _init_a(this); b = _init_b(this, 123); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/static-private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/static-private/output.js index 392c34628ca5..44fd38e41add 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/static-private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/static-private/output.js @@ -2,7 +2,7 @@ var _init_a, _init_b; const dec = () => {}; class Foo { static { - [_init_a, _init_b] = babelHelpers.applyDecs2303(this, [[[dec], 8, "a", o => o.#a, (o, v) => o.#a = v], [[dec], 8, "b", o => o.#b, (o, v) => o.#b = v]], []).e; + [_init_a, _init_b] = babelHelpers.applyDecs2303(this, [[dec, 8, "a", o => o.#a, (o, v) => o.#a = v], [dec, 8, "b", o => o.#b, (o, v) => o.#b = v]], []).e; } static #a = _init_a(this); static #b = _init_b(this, 123); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/static-public/output.js index cbbabaf09139..8a17282aba1a 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/static-public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-fields/static-public/output.js @@ -3,7 +3,7 @@ const dec = () => {}; _computedKey = 'c'; class Foo { static { - [_init_a, _init_b, _init_computedKey] = babelHelpers.applyDecs2303(this, [[[dec], 8, "a"], [[dec], 8, "b"], [[dec], 8, _computedKey]], []).e; + [_init_a, _init_b, _init_computedKey] = babelHelpers.applyDecs2303(this, [[dec, 8, "a"], [dec, 8, "b"], [dec, 8, _computedKey]], []).e; } static a = _init_a(this); static b = _init_b(this, 123); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/private/output.js index d165dcc09f40..8a330f603114 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/private/output.js @@ -17,6 +17,6 @@ class Foo { function _get_a() { return _call_a(this); } -[_call_a, _initProto] = babelHelpers.applyDecs2303(Foo, [[[dec], 3, "a", function () { +[_call_a, _initProto] = babelHelpers.applyDecs2303(Foo, [[dec, 3, "a", function () { return this.value; }]], [], 0, _ => _a.has(babelHelpers.checkInRHS(_))).e; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/public/output.js index 5f8479bbab81..763867651958 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/public/output.js @@ -13,4 +13,4 @@ class Foo { return this.value; } } -[_initProto] = babelHelpers.applyDecs2303(Foo, [[[dec], 3, "a"], [[dec], 3, _computedKey]], []).e; +[_initProto] = babelHelpers.applyDecs2303(Foo, [[dec, 3, "a"], [dec, 3, _computedKey]], []).e; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/static-private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/static-private/output.js index 1d3221479853..3c4ec052328d 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/static-private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/static-private/output.js @@ -13,7 +13,7 @@ var _a = { set: void 0 }; (() => { - [_call_a, _initStatic] = babelHelpers.applyDecs2303(Foo, [[[dec], 11, "a", function () { + [_call_a, _initStatic] = babelHelpers.applyDecs2303(Foo, [[dec, 11, "a", function () { return this.value; }]], []).e; _initStatic(Foo); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/static-public/output.js index d595e411f380..d85f72267c4f 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/static-public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters--to-es2015/static-public/output.js @@ -10,7 +10,7 @@ class Foo { } } (() => { - [_initStatic] = babelHelpers.applyDecs2303(Foo, [[[dec], 11, "a"], [[dec], 11, _computedKey]], []).e; + [_initStatic] = babelHelpers.applyDecs2303(Foo, [[dec, 11, "a"], [dec, 11, _computedKey]], []).e; _initStatic(Foo); })(); babelHelpers.defineProperty(Foo, "value", 1); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/private/output.js index 6a548fd5a3d0..385df14cddac 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/private/output.js @@ -23,8 +23,8 @@ function _get_a() { function _set_a(v) { _call_a2(this, v); } -[_call_a, _call_a2, _initProto] = babelHelpers.applyDecs2303(Foo, [[[dec], 3, "a", function () { +[_call_a, _call_a2, _initProto] = babelHelpers.applyDecs2303(Foo, [[dec, 3, "a", function () { return this.value; -}], [[dec], 4, "a", function (v) { +}], [dec, 4, "a", function (v) { this.value = v; }]], [], 0, _ => _a.has(babelHelpers.checkInRHS(_))).e; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/public/output.js index 3bb0d87b5b8d..8d381858681b 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/public/output.js @@ -20,4 +20,4 @@ class Foo { this.value = v; } } -[_initProto] = babelHelpers.applyDecs2303(Foo, [[[dec], 3, "a"], [[dec], 4, "a"], [[dec], 3, _computedKey], [[dec], 4, _computedKey2]], []).e; +[_initProto] = babelHelpers.applyDecs2303(Foo, [[dec, 3, "a"], [dec, 4, "a"], [dec, 3, _computedKey], [dec, 4, _computedKey2]], []).e; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/static-private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/static-private/output.js index 502fa0427181..d74e35f45d5d 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/static-private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/static-private/output.js @@ -19,9 +19,9 @@ var _a = { set: _set_a }; (() => { - [_call_a, _call_a2, _initStatic] = babelHelpers.applyDecs2303(Foo, [[[dec], 11, "a", function () { + [_call_a, _call_a2, _initStatic] = babelHelpers.applyDecs2303(Foo, [[dec, 11, "a", function () { return this.value; - }], [[dec], 12, "a", function (v) { + }], [dec, 12, "a", function (v) { this.value = v; }]], []).e; _initStatic(Foo); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/static-public/output.js index 5a897b8c631d..f0dad4e9d5d1 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/static-public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters--to-es2015/static-public/output.js @@ -17,7 +17,7 @@ class Foo { } } (() => { - [_initStatic] = babelHelpers.applyDecs2303(Foo, [[[dec], 11, "a"], [[dec], 12, "a"], [[dec], 11, _computedKey], [[dec], 12, _computedKey2]], []).e; + [_initStatic] = babelHelpers.applyDecs2303(Foo, [[dec, 11, "a"], [dec, 12, "a"], [dec, 11, _computedKey], [dec, 12, _computedKey2]], []).e; _initStatic(Foo); })(); babelHelpers.defineProperty(Foo, "value", 1); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/private/output.js index 7240af78bd2f..efd554e85844 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/private/output.js @@ -2,9 +2,9 @@ var _call_a, _call_a2, _initProto; const dec = () => {}; class Foo { static { - [_call_a, _call_a2, _initProto] = babelHelpers.applyDecs2303(this, [[[dec], 3, "a", function () { + [_call_a, _call_a2, _initProto] = babelHelpers.applyDecs2303(this, [[dec, 3, "a", function () { return this.value; - }], [[dec], 4, "a", function (v) { + }], [dec, 4, "a", function (v) { this.value = v; }]], [], 0, _ => #a in _).e; } diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/public/output.js index 0a6706b5c7b0..319f7189bd08 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/public/output.js @@ -4,7 +4,7 @@ _computedKey = 'b'; _computedKey2 = 'b'; class Foo { static { - [_initProto] = babelHelpers.applyDecs2303(this, [[[dec], 3, "a"], [[dec], 4, "a"], [[dec], 3, _computedKey], [[dec], 4, _computedKey2]], []).e; + [_initProto] = babelHelpers.applyDecs2303(this, [[dec, 3, "a"], [dec, 4, "a"], [dec, 3, _computedKey], [dec, 4, _computedKey2]], []).e; } constructor(...args) { _initProto(this); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/static-private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/static-private/output.js index e81e78dafe38..06fe9efca701 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/static-private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/static-private/output.js @@ -2,9 +2,9 @@ var _call_a, _call_a2, _initStatic; const dec = () => {}; class Foo { static { - [_call_a, _call_a2, _initStatic] = babelHelpers.applyDecs2303(this, [[[dec], 11, "a", function () { + [_call_a, _call_a2, _initStatic] = babelHelpers.applyDecs2303(this, [[dec, 11, "a", function () { return this.value; - }], [[dec], 12, "a", function (v) { + }], [dec, 12, "a", function (v) { this.value = v; }]], []).e; _initStatic(this); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/static-public/output.js index a96ee92311f0..edf6fda322a3 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/static-public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters-and-setters/static-public/output.js @@ -4,7 +4,7 @@ _computedKey = 'b'; _computedKey2 = 'b'; class Foo { static { - [_initStatic] = babelHelpers.applyDecs2303(this, [[[dec], 11, "a"], [[dec], 12, "a"], [[dec], 11, _computedKey], [[dec], 12, _computedKey2]], []).e; + [_initStatic] = babelHelpers.applyDecs2303(this, [[dec, 11, "a"], [dec, 12, "a"], [dec, 11, _computedKey], [dec, 12, _computedKey2]], []).e; _initStatic(this); } static value = 1; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/private/output.js index 6e2e7df441be..090e373bbd1c 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/private/output.js @@ -2,7 +2,7 @@ var _call_a, _initProto; const dec = () => {}; class Foo { static { - [_call_a, _initProto] = babelHelpers.applyDecs2303(this, [[[dec], 3, "a", function () { + [_call_a, _initProto] = babelHelpers.applyDecs2303(this, [[dec, 3, "a", function () { return this.value; }]], [], 0, _ => #a in _).e; } diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/public/output.js index 70afa551ebc1..f9255dccc6ec 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/public/output.js @@ -3,7 +3,7 @@ const dec = () => {}; _computedKey = 'b'; class Foo { static { - [_initProto] = babelHelpers.applyDecs2303(this, [[[dec], 3, "a"], [[dec], 3, _computedKey]], []).e; + [_initProto] = babelHelpers.applyDecs2303(this, [[dec, 3, "a"], [dec, 3, _computedKey]], []).e; } constructor(...args) { _initProto(this); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/static-private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/static-private/output.js index a19cd0c6e253..c151d554a936 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/static-private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/static-private/output.js @@ -2,7 +2,7 @@ var _call_a, _initStatic; const dec = () => {}; class Foo { static { - [_call_a, _initStatic] = babelHelpers.applyDecs2303(this, [[[dec], 11, "a", function () { + [_call_a, _initStatic] = babelHelpers.applyDecs2303(this, [[dec, 11, "a", function () { return this.value; }]], []).e; _initStatic(this); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/static-public/output.js index 029d0e26ce3c..382348b31248 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/static-public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-getters/static-public/output.js @@ -3,7 +3,7 @@ const dec = () => {}; _computedKey = 'b'; class Foo { static { - [_initStatic] = babelHelpers.applyDecs2303(this, [[[dec], 11, "a"], [[dec], 11, _computedKey]], []).e; + [_initStatic] = babelHelpers.applyDecs2303(this, [[dec, 11, "a"], [dec, 11, _computedKey]], []).e; _initStatic(this); } static value = 1; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/private/output.js index 33c11d2e34ce..26eed5e4f435 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/private/output.js @@ -14,6 +14,6 @@ class Foo { return babelHelpers.classPrivateFieldGet(this, _a).call(this); } } -[_call_a, _initProto] = babelHelpers.applyDecs2303(Foo, [[[dec], 2, "a", function () { +[_call_a, _initProto] = babelHelpers.applyDecs2303(Foo, [[dec, 2, "a", function () { return this.value; }]], [], 0, _ => _a.has(babelHelpers.checkInRHS(_))).e; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/public/output.js index 0676d0a55ddb..570adc92fb1a 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/public/output.js @@ -13,4 +13,4 @@ class Foo { return this.value; } } -[_initProto] = babelHelpers.applyDecs2303(Foo, [[[dec], 2, "a"], [[dec], 2, _computedKey]], []).e; +[_initProto] = babelHelpers.applyDecs2303(Foo, [[dec, 2, "a"], [dec, 2, _computedKey]], []).e; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/static-private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/static-private/output.js index db9a0178e544..ac0ca1b4c3b5 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/static-private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/static-private/output.js @@ -6,7 +6,7 @@ class Foo { } } (() => { - [_call_a, _initStatic] = babelHelpers.applyDecs2303(Foo, [[[dec], 10, "a", function () { + [_call_a, _initStatic] = babelHelpers.applyDecs2303(Foo, [[dec, 10, "a", function () { return this.value; }]], []).e; _initStatic(Foo); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/static-public/output.js index 562c83085300..e9d13491fe3d 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/static-public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods--to-es2015/static-public/output.js @@ -10,7 +10,7 @@ class Foo { } } (() => { - [_initStatic] = babelHelpers.applyDecs2303(Foo, [[[dec], 10, "a"], [[dec], 10, _computedKey]], []).e; + [_initStatic] = babelHelpers.applyDecs2303(Foo, [[dec, 10, "a"], [dec, 10, _computedKey]], []).e; _initStatic(Foo); })(); babelHelpers.defineProperty(Foo, "value", 1); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/private/output.js index 8f688decfb5b..fa5f691bb4e4 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/private/output.js @@ -2,7 +2,7 @@ var _call_a, _initProto; const dec = () => {}; class Foo { static { - [_call_a, _initProto] = babelHelpers.applyDecs2303(this, [[[dec], 2, "a", function () { + [_call_a, _initProto] = babelHelpers.applyDecs2303(this, [[dec, 2, "a", function () { return this.value; }]], [], 0, _ => #a in _).e; } diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/public/output.js index b39440bce869..ecb55e9ba21f 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/public/output.js @@ -3,7 +3,7 @@ const dec = () => {}; _computedKey = 'b'; class Foo { static { - [_initProto] = babelHelpers.applyDecs2303(this, [[[dec], 2, "a"], [[dec], 2, _computedKey]], []).e; + [_initProto] = babelHelpers.applyDecs2303(this, [[dec, 2, "a"], [dec, 2, _computedKey]], []).e; } constructor(...args) { _initProto(this); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/static-private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/static-private/output.js index 1b01c47138f2..be23a5c8f0bd 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/static-private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/static-private/output.js @@ -2,7 +2,7 @@ var _call_a, _initStatic; const dec = () => {}; class Foo { static { - [_call_a, _initStatic] = babelHelpers.applyDecs2303(this, [[[dec], 10, "a", function () { + [_call_a, _initStatic] = babelHelpers.applyDecs2303(this, [[dec, 10, "a", function () { return this.value; }]], []).e; _initStatic(this); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/static-public/output.js index fb4de5281c0e..f606920bdc0b 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/static-public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-methods/static-public/output.js @@ -3,7 +3,7 @@ const dec = () => {}; _computedKey = 'b'; class Foo { static { - [_initStatic] = babelHelpers.applyDecs2303(this, [[[dec], 10, "a"], [[dec], 10, _computedKey]], []).e; + [_initStatic] = babelHelpers.applyDecs2303(this, [[dec, 10, "a"], [dec, 10, _computedKey]], []).e; _initStatic(this); } static value = 1; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/initProto-existing-derived-constructor/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/initProto-existing-derived-constructor/output.js index 666975f3b029..41f3d5c3604b 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/initProto-existing-derived-constructor/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/initProto-existing-derived-constructor/output.js @@ -9,4 +9,4 @@ class A extends B { } method() {} } -[_initProto] = babelHelpers.applyDecs2303(A, [[[_dec], 2, "method"]], []).e; +[_initProto] = babelHelpers.applyDecs2303(A, [[_dec, 2, "method"]], []).e; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/valid-expression-formats/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/valid-expression-formats/output.js index 817058e694d6..fa98039e6116 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/valid-expression-formats/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc--to-es2015/valid-expression-formats/output.js @@ -27,7 +27,7 @@ class Foo { constructor() { babelHelpers.defineProperty(this, "bar", _init_bar(this)); } - }, [_init_bar] = babelHelpers.applyDecs2303(_class, [[[_dec9], 0, "bar"]], []).e, _class); + }, [_init_bar] = babelHelpers.applyDecs2303(_class, [[_dec9, 0, "bar"]], []).e, _class); } } ({ diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/all-decorators/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/all-decorators/output.js index 65bbd8b0c5db..77ccc56af3af 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/all-decorators/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/all-decorators/output.js @@ -8,7 +8,7 @@ new class extends babelHelpers.identity { ({ e: [_init_m, _call_o, _call_p, _call_q, _init_r, _get_r, _set_r, _init_d, _call_f, _call_g, _call_g2, _init_h, _get_h, _set_h, _init_i, _init_n, _init_a, _init_e, _initProto, _initStatic], c: [_Class, _initClass] - } = babelHelpers.applyDecs2303(this, [[[dec], 10, "j"], [[dec], 11, "k"], [[dec], 12, "l"], [[dec], 9, "m"], [[dec], 10, "o", function () {}], [[dec], 11, "p", function () {}], [[dec], 12, "q", function (v) {}], [[dec], 9, "r", o => o.#D, (o, v) => o.#D = v], [[dec], 2, "b"], [[dec], 3, "c"], [[dec], 4, "c"], [[dec], 1, "d"], [[dec], 2, "f", function () {}], [[dec], 3, "g", function () {}], [[dec], 4, "g", function (v) {}], [[dec], 1, "h", o => o.#B, (o, v) => o.#B = v], [[dec], 8, "i"], [[dec], 8, "n", o => o.#n, (o, v) => o.#n = v], [[dec], 0, "a"], [[dec], 0, "e", o => o.#e, (o, v) => o.#e = v]], [dec], 0, _ => #e in _)); + } = babelHelpers.applyDecs2303(this, [[dec, 10, "j"], [dec, 11, "k"], [dec, 12, "l"], [dec, 9, "m"], [dec, 10, "o", function () {}], [dec, 11, "p", function () {}], [dec, 12, "q", function (v) {}], [dec, 9, "r", o => o.#D, (o, v) => o.#D = v], [dec, 2, "b"], [dec, 3, "c"], [dec, 4, "c"], [dec, 1, "d"], [dec, 2, "f", function () {}], [dec, 3, "g", function () {}], [dec, 4, "g", function (v) {}], [dec, 1, "h", o => o.#B, (o, v) => o.#B = v], [dec, 8, "i"], [dec, 8, "n", o => o.#n, (o, v) => o.#n = v], [dec, 0, "a"], [dec, 0, "e", o => o.#e, (o, v) => o.#e = v]], [dec], 0, _ => #e in _)); _initStatic(this); } #f = _call_f; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/initProto-existing-derived-constructor-multiple-super/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/initProto-existing-derived-constructor-multiple-super/output.js index 3bd016f68978..e90a08e474bd 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/initProto-existing-derived-constructor-multiple-super/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/initProto-existing-derived-constructor-multiple-super/output.js @@ -3,7 +3,7 @@ const dec = () => {}; _dec = deco; class A extends B { static { - [_initProto] = babelHelpers.applyDecs2303(this, [[[_dec], 2, "method"]], []).e; + [_initProto] = babelHelpers.applyDecs2303(this, [[_dec, 2, "method"]], []).e; } constructor() { if (Math.random() > 0.5) { @@ -17,7 +17,7 @@ class A extends B { _dec2 = deco; class C extends B { static { - [_initProto2] = babelHelpers.applyDecs2303(this, [[[_dec2], 2, "method"]], []).e; + [_initProto2] = babelHelpers.applyDecs2303(this, [[_dec2, 2, "method"]], []).e; } constructor() { try { diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/initProto-existing-derived-constructor/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/initProto-existing-derived-constructor/output.js index beeaa5b297ab..e20913dffe63 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/initProto-existing-derived-constructor/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/initProto-existing-derived-constructor/output.js @@ -2,7 +2,7 @@ var _initProto; const dec = () => {}; class A extends B { static { - [_initProto] = babelHelpers.applyDecs2303(this, [[[dec], 2, "method"]], []).e; + [_initProto] = babelHelpers.applyDecs2303(this, [[dec, 2, "method"]], []).e; } constructor() { let a = 2; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/super-in-private-accessor/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/super-in-private-accessor/output.js index 60f6971ff65b..c7de91d2c094 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/super-in-private-accessor/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/super-in-private-accessor/output.js @@ -2,7 +2,7 @@ var _call_x, _initProto; const dec = () => {}; class Foo extends Bar { static { - [_call_x, _initProto] = babelHelpers.applyDecs2303(this, [[[dec], 3, "x", function () { + [_call_x, _initProto] = babelHelpers.applyDecs2303(this, [[dec, 3, "x", function () { return babelHelpers.get(babelHelpers.getPrototypeOf(Foo), "foo", this).call(this); }]], [], 0, _ => #x in _).e; } diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/super-in-private-method/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/super-in-private-method/output.js index e05ac9469780..7f76ac041fb8 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/super-in-private-method/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-misc/super-in-private-method/output.js @@ -2,7 +2,7 @@ var _call_x, _initProto; const dec = () => {}; class Foo extends Bar { static { - [_call_x, _initProto] = babelHelpers.applyDecs2303(this, [[[dec], 2, "x", function () { + [_call_x, _initProto] = babelHelpers.applyDecs2303(this, [[dec, 2, "x", function () { return babelHelpers.get(babelHelpers.getPrototypeOf(Foo), "foo", this).call(this); }]], [], 0, _ => #x in _).e; } diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/private/output.js index c7349298973f..2cd3cf38d5e4 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/private/output.js @@ -17,6 +17,6 @@ class Foo { function _set_a(v) { _call_a(this, v); } -[_call_a, _initProto] = babelHelpers.applyDecs2303(Foo, [[[dec], 4, "a", function (v) { +[_call_a, _initProto] = babelHelpers.applyDecs2303(Foo, [[dec, 4, "a", function (v) { return this.value = v; }]], [], 0, _ => _a.has(babelHelpers.checkInRHS(_))).e; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/public/output.js index 48210e3b25c7..48da3f7bfcfb 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/public/output.js @@ -13,4 +13,4 @@ class Foo { return this.value = v; } } -[_initProto] = babelHelpers.applyDecs2303(Foo, [[[dec], 4, "a"], [[dec], 4, _computedKey]], []).e; +[_initProto] = babelHelpers.applyDecs2303(Foo, [[dec, 4, "a"], [dec, 4, _computedKey]], []).e; diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/static-private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/static-private/output.js index 17b30966f3a0..ae469ad44203 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/static-private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/static-private/output.js @@ -13,7 +13,7 @@ var _a = { set: _set_a }; (() => { - [_call_a, _initStatic] = babelHelpers.applyDecs2303(Foo, [[[dec], 12, "a", function (v) { + [_call_a, _initStatic] = babelHelpers.applyDecs2303(Foo, [[dec, 12, "a", function (v) { return this.value = v; }]], []).e; _initStatic(Foo); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/static-public/output.js index 75978bf8b1d0..a49448d428ef 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/static-public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters--to-es2015/static-public/output.js @@ -10,7 +10,7 @@ class Foo { } } (() => { - [_initStatic] = babelHelpers.applyDecs2303(Foo, [[[dec], 12, "a"], [[dec], 12, _computedKey]], []).e; + [_initStatic] = babelHelpers.applyDecs2303(Foo, [[dec, 12, "a"], [dec, 12, _computedKey]], []).e; _initStatic(Foo); })(); babelHelpers.defineProperty(Foo, "value", 1); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/private/output.js index 65c074d9d197..267191900af3 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/private/output.js @@ -2,7 +2,7 @@ var _call_a, _initProto; const dec = () => {}; class Foo { static { - [_call_a, _initProto] = babelHelpers.applyDecs2303(this, [[[dec], 4, "a", function (v) { + [_call_a, _initProto] = babelHelpers.applyDecs2303(this, [[dec, 4, "a", function (v) { return this.value = v; }]], [], 0, _ => #a in _).e; } diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/public/output.js index 82c8d3bc95e5..5fea5ec2b8cb 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/public/output.js @@ -3,7 +3,7 @@ const dec = () => {}; _computedKey = 'b'; class Foo { static { - [_initProto] = babelHelpers.applyDecs2303(this, [[[dec], 4, "a"], [[dec], 4, _computedKey]], []).e; + [_initProto] = babelHelpers.applyDecs2303(this, [[dec, 4, "a"], [dec, 4, _computedKey]], []).e; } constructor(...args) { _initProto(this); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/static-private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/static-private/output.js index e6c0ab1a8898..8514769ec2a3 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/static-private/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/static-private/output.js @@ -2,7 +2,7 @@ var _call_a, _initStatic; const dec = () => {}; class Foo { static { - [_call_a, _initStatic] = babelHelpers.applyDecs2303(this, [[[dec], 12, "a", function (v) { + [_call_a, _initStatic] = babelHelpers.applyDecs2303(this, [[dec, 12, "a", function (v) { return this.value = v; }]], []).e; _initStatic(this); diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/static-public/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/static-public/output.js index cfb4832222d3..1b2f3ed16969 100644 --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/static-public/output.js +++ b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-03-setters/static-public/output.js @@ -3,7 +3,7 @@ const dec = () => {}; _computedKey = 'b'; class Foo { static { - [_initStatic] = babelHelpers.applyDecs2303(this, [[[dec], 12, "a"], [[dec], 12, _computedKey]], []).e; + [_initStatic] = babelHelpers.applyDecs2303(this, [[dec, 12, "a"], [dec, 12, _computedKey]], []).e; _initStatic(this); } static value = 1;