| Index: src/isolate.cc
|
| diff --git a/src/isolate.cc b/src/isolate.cc
|
| index 0fd74309b2919306f07b80467c323410e62e3fb4..8dd358a595c847f61c8748d70c51163e31f4bd0d 100644
|
| --- a/src/isolate.cc
|
| +++ b/src/isolate.cc
|
| @@ -2783,8 +2783,8 @@ void Isolate::RunMicrotasksInternal() {
|
| set_pending_microtask_count(0);
|
| heap()->set_microtask_queue(heap()->empty_fixed_array());
|
|
|
| - for (int i = 0; i < num_tasks; i++) {
|
| - HandleScope scope(this);
|
| + Isolate* isolate = this;
|
| + FOR_WITH_HANDLE_SCOPE(isolate, int, i = 0, i, i < num_tasks, i++, {
|
| Handle<Object> microtask(queue->get(i), this);
|
| if (microtask->IsJSFunction()) {
|
| Handle<JSFunction> microtask_function =
|
| @@ -2811,7 +2811,7 @@ void Isolate::RunMicrotasksInternal() {
|
| void* data = v8::ToCData<void*>(callback_info->data());
|
| callback(data);
|
| }
|
| - }
|
| + });
|
| }
|
| }
|
|
|
|
|