-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Unstable yield re-print with TypeScript parser #1769
Copy link
Copy link
Closed
Labels
lang:typescriptIssues affecting TypeScript-specific constructs (not general JS issues)Issues affecting TypeScript-specific constructs (not general JS issues)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.
Description
Test file:
../TypeScript/tests/cases/conformance/emitter/es5/asyncGenerators/emitter.asyncGenerators.classMethods.es5.ts
Debug output:
: prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -20,5 +20,5 @@
class C4 {
async f() {
- const x = yield* [1];
+ const x = yield * [1];
}
}
@@ -26,7 +26,9 @@
class C5 {
async f() {
- const x = yield* (async function*() {
- yield 1;
- })();
+ const x =
+ yield *
+ (async function*() {
+ yield 1;
+ })();
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
lang:typescriptIssues affecting TypeScript-specific constructs (not general JS issues)Issues affecting TypeScript-specific constructs (not general JS issues)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.