Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 6cdcfbedd130b5e279aa859da0e0c274f0d67da2..cb8d0ff946aec93a7ec4ebff5d54e767ee7e5cc7 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -3870,7 +3870,7 @@ Local<String> v8::Object::ObjectProtoToString() { |
Local<String> v8::Object::GetConstructorName() { |
auto self = Utils::OpenHandle(this); |
- i::Handle<i::String> name(self->constructor_name()); |
+ i::Handle<i::String> name = i::JSReceiver::GetConstructorName(self); |
return Utils::ToLocal(name); |
} |