[compiler][playground] Fix displayed naming of outlined functions

ghstack-source-id: 20c8e9eeba1620b061e41119dfb1a0e15c36645e
Pull Request resolved: https://github.com/facebook/react/pull/30907
This commit is contained in:
Mike Vitousek 2024-09-07 17:50:19 -07:00
parent 99cba2b041
commit a8fc4b1ef8

View File

@ -235,7 +235,7 @@ function compile(source: string): [CompilerOutput, 'flow' | 'typescript'] {
name: result.name,
value: {
type: 'FunctionDeclaration',
id,
id: withIdentifier(result.value.id),
async: result.value.async,
generator: result.value.generator,
body: result.value.body,