Index: src/d8.cc |
diff --git a/src/d8.cc b/src/d8.cc |
index 4a10550088fb90e0c3e8783558737fce2a202873..3a0dd02de40fa6eeb881aca4d7b32e9577d447b7 100644 |
--- a/src/d8.cc |
+++ b/src/d8.cc |
@@ -271,10 +271,10 @@ PerIsolateData::RealmScope::RealmScope(PerIsolateData* data) : data_(data) { |
PerIsolateData::RealmScope::~RealmScope() { |
// Drop realms to avoid keeping them alive. |
for (int i = 0; i < data_->realm_count_; ++i) |
- data_->realms_[i].Dispose(data_->isolate_); |
+ data_->realms_[i].Dispose(); |
delete[] data_->realms_; |
if (!data_->realm_shared_.IsEmpty()) |
- data_->realm_shared_.Dispose(data_->isolate_); |
+ data_->realm_shared_.Dispose(); |
} |
@@ -361,7 +361,7 @@ void Shell::RealmDispose(const v8::FunctionCallbackInfo<v8::Value>& args) { |
Throw("Invalid realm index"); |
return; |
} |
- data->realms_[index].Dispose(isolate); |
+ data->realms_[index].Dispose(); |
data->realms_[index].Clear(); |
} |
@@ -420,7 +420,7 @@ void Shell::RealmSharedSet(Local<String> property, |
const PropertyCallbackInfo<void>& info) { |
Isolate* isolate = info.GetIsolate(); |
PerIsolateData* data = PerIsolateData::Get(isolate); |
- if (!data->realm_shared_.IsEmpty()) data->realm_shared_.Dispose(isolate); |
+ if (!data->realm_shared_.IsEmpty()) data->realm_shared_.Dispose(); |
data->realm_shared_.Reset(isolate, value); |
} |