Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index cb34bed76cf085e7e9414d91d9bb56a41cf1f317..d763e31c6b724dcb159fc2889ff637742d6ec1a5 100755 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -810,6 +810,13 @@ static void CheckReturnValue(const T& t) { |
CHECK_EQ(v8::Isolate::GetCurrent(), t.GetIsolate()); |
CHECK_EQ(t.GetIsolate(), rv.GetIsolate()); |
CHECK((*o)->IsTheHole() || (*o)->IsUndefined()); |
+ // Verify reset |
+ bool is_runtime = (*o)->IsTheHole(); |
+ rv.Set(true); |
+ CHECK(!(*o)->IsTheHole() && !(*o)->IsUndefined()); |
+ rv.Set(v8::Handle<v8::Object>()); |
+ CHECK((*o)->IsTheHole() || (*o)->IsUndefined()); |
+ CHECK_EQ(is_runtime, (*o)->IsTheHole()); |
} |
static v8::Handle<Value> handle_call(const v8::Arguments& args) { |