Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 23f7cd787362461761816af1f90f961d1931c8bf..675fb45652945be50afa529b4d7bd667491b99d4 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -3299,14 +3299,14 @@ bool Value::IsAsyncFunction() const { |
i::Handle<i::Object> obj = Utils::OpenHandle(this); |
if (!obj->IsJSFunction()) return false; |
i::Handle<i::JSFunction> func = i::Handle<i::JSFunction>::cast(obj); |
- return func->shared()->is_async(); |
+ return i::IsAsyncFunction(func->shared()->kind()); |
} |
bool Value::IsGeneratorFunction() const { |
i::Handle<i::Object> obj = Utils::OpenHandle(this); |
if (!obj->IsJSFunction()) return false; |
i::Handle<i::JSFunction> func = i::Handle<i::JSFunction>::cast(obj); |
- return func->shared()->is_generator(); |
+ return i::IsGeneratorFunction(func->shared()->kind()); |
} |