From 8336464d9921915b484970b97a63b36bc5faec18 Mon Sep 17 00:00:00 2001 From: Mike Vitousek Date: Sat, 7 Sep 2024 10:56:41 -0700 Subject: [PATCH] [compiler][playground] Fix displayed naming of outlined functions [ghstack-poisoned] --- compiler/apps/playground/components/Editor/EditorImpl.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/apps/playground/components/Editor/EditorImpl.tsx b/compiler/apps/playground/components/Editor/EditorImpl.tsx index 7b1214b4600c3..ab85beebd5fca 100644 --- a/compiler/apps/playground/components/Editor/EditorImpl.tsx +++ b/compiler/apps/playground/components/Editor/EditorImpl.tsx @@ -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,