From 2f2fc538acd6d3c78137ce92b0cf10c155e7d80f Mon Sep 17 00:00:00 2001 From: "ulan@chromium.org" Date: Tue, 21 Aug 2012 07:06:21 +0000 Subject: [PATCH] Fix mjsunit/debug-script.js failure that occurs when running with the --isolates flag. R=yangguo@chromium.org Review URL: https://chromiumcodereview.appspot.com/10825454 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12347 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/d8.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/d8.cc b/src/d8.cc index c6f2ead..f20a41a 100644 --- a/src/d8.cc +++ b/src/d8.cc @@ -1589,6 +1589,11 @@ void SourceGroup::ExecuteInThread() { Execute(); } context.Dispose(); + if (Shell::options.send_idle_notification) { + const int kLongIdlePauseInMs = 1000; + V8::ContextDisposedNotification(); + V8::IdleNotification(kLongIdlePauseInMs); + } } if (done_semaphore_ != NULL) done_semaphore_->Signal(); } while (!Shell::options.last_run); -- 2.7.4