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>
Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
Peter Robinson 2018-09-09 18:24:06 +01:00 committed by Noel Eck
parent 67b77b78aa
commit ed4fe56ef8

View File

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