Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index c39b4292b19d68109118832e79c9afc9329d001d..b95f292b6e1c1763e1eefd64086ed7ebcbc8fe6d 100755 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -19280,6 +19280,18 @@ THREADED_TEST(Regress2535) { |
} |
+THREADED_TEST(Regress2746) { |
+ LocalContext context; |
+ v8::HandleScope scope(context->GetIsolate()); |
+ Local<Object> obj = Object::New(); |
+ Local<String> key = String::New("key"); |
+ obj->SetHiddenValue(key, v8::Undefined()); |
+ Local<Value> value = obj->GetHiddenValue(key); |
+ CHECK(!value.IsEmpty()); |
+ CHECK(value->IsUndefined()); |
+} |
+ |
+ |
#ifndef WIN32 |
class ThreadInterruptTest { |
public: |