From 4a2b4afc46f4c70320e462425918bcaa10828353 Mon Sep 17 00:00:00 2001 From: gavin1012_hw Date: Mon, 5 Dec 2022 10:41:07 +0800 Subject: [PATCH] fixed 442f922 from https://gitee.com/gavin1012_hw/ark_ts2abc/pulls/754 fixed d814200 from https://gitee.com/gavin1012_hw/ark_ts2abc/pulls/741 Fix whole-line source-code in abc file Issue:I64KFD Signed-off-by: gavin1012_hw Change-Id: I890a8781794d8cff15d64b820297474a8fdba580 --- es2panda/compiler/core/emitter/emitter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es2panda/compiler/core/emitter/emitter.cpp b/es2panda/compiler/core/emitter/emitter.cpp index 114d43fdce..194d0453ad 100644 --- a/es2panda/compiler/core/emitter/emitter.cpp +++ b/es2panda/compiler/core/emitter/emitter.cpp @@ -230,7 +230,7 @@ void FunctionEmitter::GenSourceFileDebugInfo() } if (pg_->RootNode()->IsProgram()) { - func_->source_code = SourceCode().EscapeSymbol(); + func_->source_code = SourceCode().Mutf8(); } } -- Gitee