| Index: test/cctest/test-heap.cc
|
| diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc
|
| index 87598e2fb020cf2bc704ef5c03858738efd13daf..40c4c33b5adfee39620051d59b9760238936e42d 100644
|
| --- a/test/cctest/test-heap.cc
|
| +++ b/test/cctest/test-heap.cc
|
| @@ -398,7 +398,7 @@ static void TestWeakGlobalHandleCallback(v8::Isolate* isolate,
|
| v8::Persistent<v8::Value>* handle,
|
| void* id) {
|
| if (1234 == reinterpret_cast<intptr_t>(id)) WeakPointerCleared = true;
|
| - handle->Dispose(isolate);
|
| + handle->Dispose();
|
| }
|
|
|
|
|
| @@ -1720,12 +1720,12 @@ TEST(LeakNativeContextViaMap) {
|
| ctx2->Global()->Set(v8_str("o"), v8::Int32::New(0));
|
| ctx2->Exit();
|
| v8::Local<v8::Context>::New(isolate, ctx1)->Exit();
|
| - ctx1p.Dispose(isolate);
|
| + ctx1p.Dispose();
|
| v8::V8::ContextDisposedNotification();
|
| }
|
| HEAP->CollectAllAvailableGarbage();
|
| CHECK_EQ(2, NumberOfGlobalObjects());
|
| - ctx2p.Dispose(isolate);
|
| + ctx2p.Dispose();
|
| HEAP->CollectAllAvailableGarbage();
|
| CHECK_EQ(0, NumberOfGlobalObjects());
|
| }
|
| @@ -1766,12 +1766,12 @@ TEST(LeakNativeContextViaFunction) {
|
| ctx2->Global()->Set(v8_str("o"), v8::Int32::New(0));
|
| ctx2->Exit();
|
| ctx1->Exit();
|
| - ctx1p.Dispose(ctx1->GetIsolate());
|
| + ctx1p.Dispose();
|
| v8::V8::ContextDisposedNotification();
|
| }
|
| HEAP->CollectAllAvailableGarbage();
|
| CHECK_EQ(2, NumberOfGlobalObjects());
|
| - ctx2p.Dispose(isolate);
|
| + ctx2p.Dispose();
|
| HEAP->CollectAllAvailableGarbage();
|
| CHECK_EQ(0, NumberOfGlobalObjects());
|
| }
|
| @@ -1810,12 +1810,12 @@ TEST(LeakNativeContextViaMapKeyed) {
|
| ctx2->Global()->Set(v8_str("o"), v8::Int32::New(0));
|
| ctx2->Exit();
|
| ctx1->Exit();
|
| - ctx1p.Dispose(ctx1->GetIsolate());
|
| + ctx1p.Dispose();
|
| v8::V8::ContextDisposedNotification();
|
| }
|
| HEAP->CollectAllAvailableGarbage();
|
| CHECK_EQ(2, NumberOfGlobalObjects());
|
| - ctx2p.Dispose(isolate);
|
| + ctx2p.Dispose();
|
| HEAP->CollectAllAvailableGarbage();
|
| CHECK_EQ(0, NumberOfGlobalObjects());
|
| }
|
| @@ -1858,12 +1858,12 @@ TEST(LeakNativeContextViaMapProto) {
|
| ctx2->Global()->Set(v8_str("o"), v8::Int32::New(0));
|
| ctx2->Exit();
|
| ctx1->Exit();
|
| - ctx1p.Dispose(isolate);
|
| + ctx1p.Dispose();
|
| v8::V8::ContextDisposedNotification();
|
| }
|
| HEAP->CollectAllAvailableGarbage();
|
| CHECK_EQ(2, NumberOfGlobalObjects());
|
| - ctx2p.Dispose(isolate);
|
| + ctx2p.Dispose();
|
| HEAP->CollectAllAvailableGarbage();
|
| CHECK_EQ(0, NumberOfGlobalObjects());
|
| }
|
|
|