From adbb7d2b55efc4dafc9d043f6e8585c0ff7ef95f Mon Sep 17 00:00:00 2001 From: wengchangcheng Date: Tue, 7 Feb 2023 09:54:34 +0800 Subject: [PATCH] Descriptor: Support async/await in taskpool Details: Allow mark async function as Concurrent Issue: https://gitee.com/openharmony/commonlibrary_ets_utils/issues/I6DC6E Signed-off-by: wengchangcheng Change-Id: I840386bc11cae3cdc16c46a18b7ce15f78631d36 --- es2panda/ir/base/scriptFunction.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es2panda/ir/base/scriptFunction.h b/es2panda/ir/base/scriptFunction.h index 9e2dadfaef..b610c74a50 100644 --- a/es2panda/ir/base/scriptFunction.h +++ b/es2panda/ir/base/scriptFunction.h @@ -194,7 +194,7 @@ public: bool CanBeConcurrent() const { - return !(IsGenerator() || IsAsync() || IsArrow() || IsConstructor() || IsMethod()); + return !(IsGenerator() || IsArrow() || IsConstructor() || IsMethod()); } void Iterate(const NodeTraverser &cb) const override; -- Gitee