diff --git a/tasks/transform_conformance/overrides/babel-plugin-transform-class-properties/test/fixtures/private/super-expression/output.js b/tasks/transform_conformance/overrides/babel-plugin-transform-class-properties/test/fixtures/private/super-expression/output.js new file mode 100644 index 00000000000000..470037b46f1398 --- /dev/null +++ b/tasks/transform_conformance/overrides/babel-plugin-transform-class-properties/test/fixtures/private/super-expression/output.js @@ -0,0 +1,11 @@ +var _bar = /*#__PURE__*/new WeakMap(); +class Foo extends Bar { + constructor() { + var _super = (..._args) => ( + super(..._args), + babelHelpers.classPrivateFieldInitSpec(this, _bar, "foo"), + this + ); + foo(_super()); + } +} diff --git a/tasks/transform_conformance/snapshots/babel.snap.md b/tasks/transform_conformance/snapshots/babel.snap.md index 826b997bf24093..6c5f08e0cead6b 100644 --- a/tasks/transform_conformance/snapshots/babel.snap.md +++ b/tasks/transform_conformance/snapshots/babel.snap.md @@ -1,6 +1,6 @@ commit: 54a8389f -Passed: 439/846 +Passed: 440/846 # All Passed: * babel-plugin-transform-class-static-block @@ -276,7 +276,7 @@ x Output mismatch x Output mismatch -# babel-plugin-transform-class-properties (112/264) +# babel-plugin-transform-class-properties (113/264) * assumption-constantSuper/complex-super-class/input.js x Output mismatch @@ -591,9 +591,6 @@ Scope parent mismatch: after transform: ScopeId(2): Some(ScopeId(1)) rebuilt : ScopeId(2): Some(ScopeId(0)) -* private/super-expression/input.js -x Output mismatch - * private-loose/assignment/input.js x Output mismatch