Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index ea14d353436a56dd62466a8a69d3b579af2123bd..9540ad8489a0140c44b1f620e6fc6b466963aa13 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -4363,6 +4363,10 @@ bool v8::Object::IsCallable() { |
return self->IsCallable(); |
} |
+bool v8::Object::IsConstructor() { |
+ auto self = Utils::OpenHandle(this); |
+ return self->IsConstructor(); |
+} |
MaybeLocal<Value> Object::CallAsFunction(Local<Context> context, |
Local<Value> recv, int argc, |