Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index 98accbc9ff48d54ff0c085c94db63d0f8d7c0636..b6b96adcaf36ce924fdcd7c7cc964811f7dc4221 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -973,6 +973,22 @@ |
} |
+TEST(EmptyHandleEscapeFrom) { |
+ CcTest::InitializeVM(); |
+ |
+ v8::HandleScope scope(CcTest::isolate()); |
+ Handle<JSObject> runaway; |
+ |
+ { |
+ v8::EscapableHandleScope nested(CcTest::isolate()); |
+ Handle<JSObject> empty; |
+ runaway = empty.EscapeFrom(&nested); |
+ } |
+ |
+ CHECK(runaway.is_null()); |
+} |
+ |
+ |
static int LenFromSize(int size) { |
return (size - FixedArray::kHeaderSize) / kPointerSize; |
} |