mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
[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:
parent
99cba2b041
commit
a8fc4b1ef8
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user