diff --git a/packages/babel-plugin-transform-new-target/test/fixtures/general/class-properties-loose/output.js b/packages/babel-plugin-transform-new-target/test/fixtures/general/class-properties-loose/output.js index e05f9670a349..bca2cf54544a 100644 --- a/packages/babel-plugin-transform-new-target/test/fixtures/general/class-properties-loose/output.js +++ b/packages/babel-plugin-transform-new-target/test/fixtures/general/class-properties-loose/output.js @@ -10,6 +10,7 @@ class Foo { }; this.Bar = (_class = class { constructor() { + // should not replace this.q = this.constructor; } // should not replace }, _class.p = void 0, _class.p1 = class { diff --git a/packages/babel-plugin-transform-new-target/test/fixtures/general/class-properties/output.js b/packages/babel-plugin-transform-new-target/test/fixtures/general/class-properties/output.js index 25b6e7b2f982..7c48d962e54c 100644 --- a/packages/babel-plugin-transform-new-target/test/fixtures/general/class-properties/output.js +++ b/packages/babel-plugin-transform-new-target/test/fixtures/general/class-properties/output.js @@ -10,6 +10,7 @@ class Foo { }); this.Bar = (_class = class { constructor() { + // should not replace babelHelpers.defineProperty(this, "q", this.constructor); } // should not replace }, babelHelpers.defineProperty(_class, "p", void 0), babelHelpers.defineProperty(_class, "p1", class {