Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 6d53d91dd850f58cb0d89650fe99b44835b2a790..128319c64a81479ae6e55c67c5af2af07fe9f244 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -3055,6 +3055,19 @@ bool Value::StrictEquals(Handle<Value> that) const { |
} |
+bool Value::SameValue(Handle<Value> that) const { |
+ i::Isolate* isolate = i::Isolate::Current(); |
+ if (EmptyCheck("v8::Value::SameValue()", this) || |
+ EmptyCheck("v8::Value::SameValue()", that)) { |
+ return false; |
+ } |
+ LOG_API(isolate, "SameValue"); |
+ i::Handle<i::Object> obj = Utils::OpenHandle(this); |
+ i::Handle<i::Object> other = Utils::OpenHandle(*that); |
+ return obj->SameValue(*other); |
+} |
+ |
+ |
uint32_t Value::Uint32Value() const { |
i::Handle<i::Object> obj = Utils::OpenHandle(this); |
if (obj->IsSmi()) { |