-
-
Notifications
You must be signed in to change notification settings - Fork 457
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests(transformer/async-to-generator): failing test for nested supers
- Loading branch information
1 parent
6b7a223
commit 6fa1b2f
Showing
3 changed files
with
43 additions
and
2 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
15 changes: 15 additions & 0 deletions
15
...mance/tests/babel-plugin-transform-async-to-generator/test/fixtures/super/nested/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,15 @@ | ||
const outer = { | ||
value: 0, | ||
async method() { | ||
() => super.value; | ||
|
||
const inner = { | ||
value: 0, | ||
async method() { | ||
() => super.value; | ||
} | ||
}; | ||
|
||
() => super.value; | ||
} | ||
}; |
22 changes: 22 additions & 0 deletions
22
...ance/tests/babel-plugin-transform-async-to-generator/test/fixtures/super/nested/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 @@ | ||
const outer = { | ||
value: 0, | ||
method() { | ||
var _superprop_getValue = () => super.value; | ||
|
||
return babelHelpers.asyncToGenerator(function* () { | ||
() => _superprop_getValue(); | ||
|
||
const inner = { | ||
value: 0, | ||
method() { | ||
var _superprop_getValue2 = () => super.value; | ||
return babelHelpers.asyncToGenerator(function* () { | ||
() => _superprop_getValue2(); | ||
})(); | ||
} | ||
}; | ||
|
||
() => _superprop_getValue(); | ||
})(); | ||
} | ||
}; |