Index: test/cctest/test-api.h |
diff --git a/test/cctest/test-api.h b/test/cctest/test-api.h |
index 379fe9c9c2810cc8fb8930c5a9766927f8f136ea..8887a8a976558d14ac1482b22968f2e2831a8719 100644 |
--- a/test/cctest/test-api.h |
+++ b/test/cctest/test-api.h |
@@ -18,6 +18,12 @@ static void CheckReturnValue(const T& t, i::Address callback) { |
CHECK((*o)->IsTheHole() || (*o)->IsUndefined()); |
// Verify reset |
bool is_runtime = (*o)->IsTheHole(); |
+ if (is_runtime) { |
+ CHECK(rv.Get()->IsUndefined()); |
+ } else { |
+ i::Handle<i::Object> v = v8::Utils::OpenHandle(*rv.Get()); |
+ CHECK_EQ(*v, *o); |
+ } |
rv.Set(true); |
CHECK(!(*o)->IsTheHole() && !(*o)->IsUndefined()); |
rv.Set(v8::Local<v8::Object>()); |