Skip to content

Unstable yield re-print with TypeScript parser #1769

@azz

Description

@azz

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;
+      })();
   }
 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang:typescriptIssues affecting TypeScript-specific constructs (not general JS issues)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions