From 948b5193db00e7089be2ae72dc2140e2f30e59f8 Mon Sep 17 00:00:00 2001 From: chenyiyuan Date: Tue, 26 Dec 2023 04:54:29 +0000 Subject: [PATCH] remove class constructor flag Signed-off-by: chenyiyuan Change-Id: I9697fd7b6c708f5dec9131882eb0aad4f6012880 --- es2panda/compiler/core/pandagen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es2panda/compiler/core/pandagen.cpp b/es2panda/compiler/core/pandagen.cpp index 2fa6ed0687..32863ddb2a 100644 --- a/es2panda/compiler/core/pandagen.cpp +++ b/es2panda/compiler/core/pandagen.cpp @@ -58,7 +58,7 @@ void PandaGen::SetFunctionKind() } auto *func = rootNode_->AsScriptFunction(); - if (func->IsConcurrent()) { + if (func->IsConcurrent() && !func->IsConstructor()) { funcKind_ = panda::panda_file::FunctionKind::CONCURRENT_FUNCTION; return; } -- Gitee