Index: test/cctest/test-weakmaps.cc |
diff --git a/test/cctest/test-weakmaps.cc b/test/cctest/test-weakmaps.cc |
index 0aee37bb5aae6c245b0983b053f19dedd153b3b2..a8cb33fce2f5b78d1d4f9a9a293d6ec907b7a404 100644 |
--- a/test/cctest/test-weakmaps.cc |
+++ b/test/cctest/test-weakmaps.cc |
@@ -111,13 +111,10 @@ TEST(Weakness) { |
0, ObjectHashTable::cast(weakmap->table())->NumberOfDeletedElements()); |
// Make the global reference to the key weak. |
- { |
- HandleScope scope(isolate); |
- std::pair<Handle<Object>*, int> handle_and_id(&key, 1234); |
- GlobalHandles::MakeWeak( |
- key.location(), reinterpret_cast<void*>(&handle_and_id), |
- &WeakPointerCallback, v8::WeakCallbackType::kParameter); |
- } |
+ std::pair<Handle<Object>*, int> handle_and_id(&key, 1234); |
+ GlobalHandles::MakeWeak( |
+ key.location(), reinterpret_cast<void*>(&handle_and_id), |
+ &WeakPointerCallback, v8::WeakCallbackType::kParameter); |
CHECK(global_handles->IsWeak(key.location())); |
CcTest::CollectAllGarbage(Heap::kAbortIncrementalMarkingMask); |