Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 970fdaa1ddb7db3160eaa6f6b628226278bf231d..2410d0902050712a21a28723b97c6922320f44d8 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -12523,6 +12523,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!"); |