Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index e55e0aa08570c0e57978a16e411f13faad0f38e0..11182301bcaea6dbebfe37a8b64f7cb8ffde8531 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -3976,8 +3976,7 @@ bool v8::Object::IsCallable() { |
ENTER_V8(isolate); |
i::HandleScope scope(isolate); |
i::Handle<i::JSObject> obj = Utils::OpenHandle(this); |
- if (obj->IsJSFunction()) return true; |
- return i::Execution::GetFunctionDelegate(isolate, obj)->IsJSFunction(); |
+ return obj->IsCallable(); |
} |