@samitouri / QOS-React / commits / a8fc4b1ef8

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

ghstack-source-id: 20c8e9eeba1620b061e41119dfb1a0e15c36645e Pull Request resolved: https://github.com/facebook/react/pull/30907

Mike Vitousek committed Sep 7, 2024 at 17:50 UTC a8fc4b1ef8149a0f2b55942683bf96409e3f313f
1 file changed +1 -1
compiler/apps/playground/components/Editor/EditorImpl.tsx
+1 -1
@@ -235,7 +235,7 @@ function compile(source: string): [CompilerOutput, 'flow' | 'typescript'] {
235 name: result.name,
236 value: {
237 type: 'FunctionDeclaration',
238 - id,
238 + id: withIdentifier(result.value.id),
239 async: result.value.async,
240 generator: result.value.generator,
241 body: result.value.body,