-
-
Notifications
You must be signed in to change notification settings - Fork 496
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 outputfor
_super
…
…in class constructor
- Loading branch information
1 parent
02f9903
commit df7cfb9
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