[d8] Make Realm.dispose() trigger a ContextDisposedNotification
authorjkummerow <jkummerow@chromium.org>
Tue, 5 May 2015 14:25:20 +0000 (07:25 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 5 May 2015 14:25:25 +0000 (14:25 +0000)
Review URL: https://codereview.chromium.org/1129543002

Cr-Commit-Position: refs/heads/master@{#28230}

src/d8.cc

index 75bbf1d..7a300ef 100644 (file)
--- a/src/d8.cc
+++ b/src/d8.cc
@@ -501,6 +501,8 @@ void Shell::RealmDispose(const v8::FunctionCallbackInfo<v8::Value>& args) {
     return;
   }
   data->realms_[index].Reset();
+  isolate->ContextDisposedNotification();
+  isolate->IdleNotificationDeadline(g_platform->MonotonicallyIncreasingTime());
 }