From 224309c107aa5c0a209fdc819fb4985d68dae567 Mon Sep 17 00:00:00 2001 From: ctw-ian Date: Tue, 18 Oct 2022 15:19:29 +0800 Subject: [PATCH] fixed 6dad3b0 from https://gitee.com/ctw-ian/ark_ts2abc/pulls/600 Fix step into async function Issue:I5WC0Z Signed-off-by: ctw-ian Change-Id: I2e50bdcf6c63e4090b51d3b1e0215bc07bcd194c --- 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 b9a4bce84f..5fb0ba8c80 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