From 23a3d8d30d64c97622c08167ecc050a389d9d451 Mon Sep 17 00:00:00 2001 From: ctw-ian Date: Tue, 18 Oct 2022 15:32:19 +0800 Subject: [PATCH] Fix step into an async-function Issue:I5WC6R Signed-off-by: ctw-ian Change-Id: I86aa72af710c94990afba30db99ced0f6ef7f3b3 --- es2panda/compiler/core/function.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/es2panda/compiler/core/function.cpp b/es2panda/compiler/core/function.cpp index 939d1740ac..c7258235b5 100644 --- a/es2panda/compiler/core/function.cpp +++ b/es2panda/compiler/core/function.cpp @@ -156,7 +156,9 @@ static void CompileFunction(PandaGen *pg) pg->StoreAccToLexEnv(pg->RootNode(), funcParamScope->Find(funcParamScope->NameVar()->Name()), true); } + pg->SetSourceLocationFlag(lexer::SourceLocationFlag::INVALID_SOURCE_LOCATION); pg->FunctionEnter(); + pg->SetSourceLocationFlag(lexer::SourceLocationFlag::VALID_SOURCE_LOCATION); CompileFunctionParameterDeclaration(pg, decl); const ir::AstNode *body = decl->Body(); -- Gitee