Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 8a73877eedec4b395078d7c7f2f84b103c5df763..50cd68a216d0daf6af7244665edd3c49b0a07560 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -3689,7 +3689,8 @@ int v8::Object::GetIdentityHash() { |
ENTER_V8(isolate); |
i::HandleScope scope(isolate); |
i::Handle<i::JSObject> self = Utils::OpenHandle(this); |
- return i::JSObject::GetIdentityHash(self); |
+ return i::Handle<i::Smi>::cast( |
+ i::JSReceiver::GetOrCreateIdentityHash(self))->value(); |
} |