(msec)
| 587 | let validateUint32; |
| 588 | |
| 589 | function sleep(msec) { |
| 590 | // Lazy-load to avoid a circular dependency. |
| 591 | if (validateUint32 === undefined) |
| 592 | ({ validateUint32 } = require('internal/validators')); |
| 593 | |
| 594 | validateUint32(msec, 'msec'); |
| 595 | _sleep(msec); |
| 596 | } |
| 597 | |
| 598 | // https://heycam.github.io/webidl/#define-the-operations |
| 599 | function defineOperation(target, name, method) { |
searching dependent graphs…