From 6266db786867bcc785ae0770a06462012206641f Mon Sep 17 00:00:00 2001 From: hufeng Date: Thu, 7 Dec 2023 07:56:00 +0000 Subject: [PATCH] Fix es2abc's errmsg not being output occasionally Signed-off-by: hufeng Change-Id: If596806bedf6bc8d7249a1e70d72035a5dd56e21 --- compiler/src/fast_build/ark_compiler/module/module_mode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/fast_build/ark_compiler/module/module_mode.ts b/compiler/src/fast_build/ark_compiler/module/module_mode.ts index e566ea16b..4e3400e0a 100644 --- a/compiler/src/fast_build/ark_compiler/module/module_mode.ts +++ b/compiler/src/fast_build/ark_compiler/module/module_mode.ts @@ -405,7 +405,7 @@ export class ModuleMode extends CommonMode { eventGenAbc = createAndStartEvent(parentEvent, 'generate merged abc by es2abc (async)', true); return childProcess.exec(genAbcCmd, { windowsHide: true }); }); - child.on('exit', (code: any) => { + child.on('close', (code: any) => { if (code === FAIL) { this.throwArkTsCompilerError('ArkTS:ERROR failed to execute es2abc'); } -- Gitee