diff --git a/es2panda/compiler/core/pandagen.cpp b/es2panda/compiler/core/pandagen.cpp index 2fa6ed068721dfcf09d49455ccd3ec8e988f7306..32863ddb2a02a392d102b2a268b8dbc9e875c4cc 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; }