Use IdleNotificationDeadline as deprecated IdleNotification has been removed

In v8 API 6.5 the long deprecated IdleNotification has been removed so we
need to use IdleNotificationDeadline as nodejs 10.x uses newer v8.

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
This commit is contained in:
Peter Robinson 2018-09-09 18:24:06 +01:00
parent 67b77b78aa
commit 11d1bf11b5

View File

@ -28,9 +28,9 @@ void cleanUp()
* See https://codereview.chromium.org/412163003 for this API change * See https://codereview.chromium.org/412163003 for this API change
*/ */
#if (SWIG_V8_VERSION < 0x032838) #if (SWIG_V8_VERSION < 0x032838)
while (!v8::V8::IdleNotification()) while (!v8::V8::IdleNotificationDeadline())
#else #else
while (!v8::Isolate::GetCurrent()->IdleNotification(1000)) while (!v8::Isolate::GetCurrent()->IdleNotificationDeadline(1000))
#endif #endif
{;} {;}
} }