-
-
Notifications
You must be signed in to change notification settings - Fork 501
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(transformer): enable
ArrowFunctionConverter
in `async-to-gener…
…ator` and `async-generator-functions` plugins (#7113) Part of #7074 In async-to-generator and async-generator-functions plugins, we may need to transform the async arrow function to a regular generator function, now we can reuse the ability of the ArrowFunction plugin by enabling `ArrowFunctionConverter`. I will fix semantic errors in the follow-up PR
- Loading branch information
Showing
6 changed files
with
90 additions
and
64 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
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
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 |
---|---|---|
|
@@ -234,33 +234,3 @@ AssertionError: expected false to be true // Object.is equality | |
|
||
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[14/14]⎯ | ||
|
||
|
||
⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯ | ||
AssertionError: expected [Function Object] to be [Function Bar] // Object.is equality | ||
|
||
- Expected | ||
+ Received | ||
|
||
- [Function Bar] | ||
+ [Function Object] | ||
|
||
❯ fixtures/babel-preset-env-test-fixtures-plugins-integration-regression-7064-exec.test.js:13:30 | ||
11| }).call(this); | ||
12| _asyncToGenerator(function* () { | ||
13| expect(this.constructor).toBe(Bar); | ||
| ^ | ||
14| })(); | ||
15| _asyncToGenerator(function* () { | ||
❯ asyncGeneratorStep ../../node_modules/.pnpm/@babel[email protected]/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:17 | ||
❯ _next ../../node_modules/.pnpm/@babel[email protected]/node_modules/@babel/runtime/helpers/asyncToGenerator.js:17:9 | ||
❯ ../../node_modules/.pnpm/@babel[email protected]/node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:7 | ||
❯ ../../node_modules/.pnpm/@babel[email protected]/node_modules/@babel/runtime/helpers/asyncToGenerator.js:14:12 | ||
❯ Bar.test fixtures/babel-preset-env-test-fixtures-plugins-integration-regression-7064-exec.test.js:14:6 | ||
❯ fixtures/babel-preset-env-test-fixtures-plugins-integration-regression-7064-exec.test.js:20:12 | ||
❯ ../../node_modules/.pnpm/@vitest[email protected]/node_modules/@vitest/runner/dist/index.js:146:14 | ||
|
||
This error originated in "fixtures/babel-preset-env-test-fixtures-plugins-integration-regression-7064-exec.test.js" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. | ||
The latest test that might've caused the error is "fixtures/babel-preset-env-test-fixtures-plugins-integration-regression-7064-exec.test.js". It might mean one of the following: | ||
- The error was thrown, while Vitest was running this test. | ||
- If the error occurred after the test had been completed, this was the last documented test before it was thrown. | ||
|