diff --git a/tasks/transform_conformance/overrides/babel-plugin-transform-class-properties/test/fixtures/private-loose/foobar/output.js b/tasks/transform_conformance/overrides/babel-plugin-transform-class-properties/test/fixtures/private-loose/foobar/output.js new file mode 100644 index 0000000000000..1f630a5394cca --- /dev/null +++ b/tasks/transform_conformance/overrides/babel-plugin-transform-class-properties/test/fixtures/private-loose/foobar/output.js @@ -0,0 +1,12 @@ +var _scopedFunctionWithThis = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("scopedFunctionWithThis"); +class Child extends Parent { + constructor() { + super(); + Object.defineProperty(this, _scopedFunctionWithThis, { + writable: true, + value: () => { + this.name = {}; + } + }); + } +} diff --git a/tasks/transform_conformance/overrides/babel-plugin-transform-class-properties/test/fixtures/public-loose/foobar/output.js b/tasks/transform_conformance/overrides/babel-plugin-transform-class-properties/test/fixtures/public-loose/foobar/output.js new file mode 100644 index 0000000000000..05143dde05be1 --- /dev/null +++ b/tasks/transform_conformance/overrides/babel-plugin-transform-class-properties/test/fixtures/public-loose/foobar/output.js @@ -0,0 +1,8 @@ +class Child extends Parent { + constructor() { + super(); + this.scopedFunctionWithThis = () => { + this.name = {}; + }; + } +}