Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 5667e995bbbe7f1e7f3307738d8439ba425646cf..08af651c87347821443eb1bf428766236adeeab6 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -12213,6 +12213,25 @@ TEST(RegExp) { |
} |
+THREADED_TEST(Equals) { |
+ v8::HandleScope handleScope; |
+ LocalContext localContext; |
+ |
+ v8::Handle<v8::Object> globalProxy = localContext->Global(); |
+ v8::Handle<Value> global = globalProxy->GetPrototype(); |
+ |
+ CHECK(global->StrictEquals(global)); |
+ CHECK(!global->StrictEquals(globalProxy)); |
+ CHECK(!globalProxy->StrictEquals(global)); |
+ CHECK(globalProxy->StrictEquals(globalProxy)); |
+ |
+ CHECK(global->Equals(global)); |
+ CHECK(!global->Equals(globalProxy)); |
+ CHECK(!globalProxy->Equals(global)); |
+ CHECK(globalProxy->Equals(globalProxy)); |
+} |
+ |
+ |
static v8::Handle<v8::Value> Getter(v8::Local<v8::String> property, |
const v8::AccessorInfo& info ) { |
return v8_str("42!"); |