| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 4b80555a159da47f82183c3c090ea3f5415b17f9..47e94b6439890c6f3130cd2e40c6e7a5dd4a7088 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -5285,7 +5285,8 @@ bool v8::V8::IdleNotification(int hint) {
|
| // continue to call IdleNotification.
|
| i::Isolate* isolate = i::Isolate::Current();
|
| if (isolate == NULL || !isolate->IsInitialized()) return true;
|
| - return i::V8::IdleNotification(hint);
|
| + if (!i::FLAG_use_idle_notification) return true;
|
| + return isolate->heap()->IdleNotification(hint);
|
| }
|
|
|
|
|
|
|