| Index: test/cctest/test-heap.cc
 | 
| diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc
 | 
| index 45c516038d5826bb05668ab7bb15b6c1ceceae12..5dc6ceb7ffdbc8ced081550139408d2ca8c9ff38 100644
 | 
| --- a/test/cctest/test-heap.cc
 | 
| +++ b/test/cctest/test-heap.cc
 | 
| @@ -809,3 +809,19 @@ TEST(Iteration) {
 | 
|    CHECK_EQ(objs_count, next_objs_index);
 | 
|    CHECK_EQ(objs_count, ObjectsFoundInHeap(objs, objs_count));
 | 
|  }
 | 
| +
 | 
| +
 | 
| +TEST(EmptyHandleEscapeFrom) {
 | 
| +  InitializeVM();
 | 
| +
 | 
| +  v8::HandleScope scope;
 | 
| +  Handle<JSObject> runaway;
 | 
| +
 | 
| +  {
 | 
| +      v8::HandleScope nested;
 | 
| +      Handle<JSObject> empty;
 | 
| +      runaway = empty.EscapeFrom(&nested);
 | 
| +  }
 | 
| +
 | 
| +  CHECK(runaway.is_null());
 | 
| +}
 | 
| 
 |