mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
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.
This commit is contained in:
parent
48b1e4ad32
commit
3bae741bb4
2 changed files with 13 additions and 5 deletions
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue