MCPcopy Create free account
hub / github.com/nodejs/node / wait

Function wait

test/fixtures/wpt/common/security-features/resources/common.sub.js:703–705  ·  view source on GitHub ↗
(ms)

Source from the content-addressed store, hash-verified

701 */
702async function requestViaSendBeacon(url) {
703 function wait(ms) {
704 return new Promise(resolve => step_timeout(resolve, ms));
705 }
706 if (!navigator.sendBeacon(url)) {
707 // If mixed-content check fails, it should return false.
708 throw new Error('sendBeacon() fails.');

Callers 1

requestViaSendBeaconFunction · 0.70

Calls 1

step_timeoutFunction · 0.50

Tested by

no test coverage detected