Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index ee9683712fabb0acad2e23952650b9704b50313a..763dc8c94fbd35c8ca60a727f49a8f49c31910b0 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -148,6 +148,16 @@ static void CheckFindCodeObject(Isolate* isolate) { |
} |
+TEST(HandleNull) { |
+ CcTest::InitializeVM(); |
+ Isolate* isolate = CcTest::i_isolate(); |
+ HandleScope outer_scope(isolate); |
+ LocalContext context; |
+ Handle<Object> n(reinterpret_cast<Object*>(NULL), isolate); |
+ CHECK(!n.is_null()); |
+} |
+ |
+ |
TEST(HeapObjects) { |
CcTest::InitializeVM(); |
Isolate* isolate = CcTest::i_isolate(); |