diff --git a/es2panda/ir/base/scriptFunction.h b/es2panda/ir/base/scriptFunction.h index 9e2dadfaef1c89126dacc5867e9be4c497cac5ef..b610c74a5086febc1abb2a56aeab59a0d39524a1 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;