mirror of
https://github.com/eclipse/upm.git
synced 2025-03-14 20:47:30 +03:00
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:
parent
67b77b78aa
commit
ed4fe56ef8
@ -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
|
||||
{;}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user