-
-
Notifications
You must be signed in to change notification settings - Fork 518
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(transformer/arrow-functions): outer
super()
in nested class (#8382
- Loading branch information
Showing
4 changed files
with
77 additions
and
15 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
commit: 54a8389f | ||
|
||
Passed: 125/143 | ||
Passed: 126/144 | ||
|
||
# All Passed: | ||
* babel-plugin-transform-class-static-block | ||
|
12 changes: 12 additions & 0 deletions
12
...gin-transform-async-to-generator/test/fixtures/super/outer-super-in-nested-class/input.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,12 @@ | ||
class Outer extends OuterSuper { | ||
constructor() { | ||
class Inner extends super() { | ||
[super()] = 1; | ||
static [super()] = 2; | ||
|
||
[super()]() {} | ||
static [super()]() {} | ||
} | ||
let fn = async () => this; | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...in-transform-async-to-generator/test/fixtures/super/outer-super-in-nested-class/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,22 @@ | ||
class Outer extends OuterSuper { | ||
constructor() { | ||
var _this; | ||
|
||
class Inner extends (super(), _this = this) { | ||
[(super(), _this = this)] = 1; | ||
static [(super(), _this = this)] = 2; | ||
[(super(), _this = this)]() {} | ||
static [(super(), _this = this)]() {} | ||
} | ||
|
||
let fn = /*#__PURE__*/function () { | ||
var _ref = babelHelpers.asyncToGenerator(function* () { | ||
return _this; | ||
}); | ||
return function fn() { | ||
return _ref.apply(this, arguments); | ||
}; | ||
}(); | ||
|
||
} | ||
} |