-
-
Notifications
You must be signed in to change notification settings - Fork 484
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(transformer/class-properties): override test output for
_super
…
… in class constructor (#7726) Our output for this test differs from Babel, because we handle `super()` in class constructors differently, but our output is valid.
- Loading branch information
1 parent
48b1e4a
commit 3bae741
Showing
2 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
.../babel-plugin-transform-class-properties/test/fixtures/private/super-expression/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters