tl;dr: I didn't want to figure out how to type global as a global, and since only node has global... we don't need to care about its existence (since any js runtime that has global also has globalThis -- which we do support)
for node / fastboot, globalThis was introduced in Node 12, which we already don't support as it's far beyond LTS support period. Prior to Node 12, this library will no longer work in fastboot mode (so you'd have to use v3.x of test-waiters).
tl;dr: I didn't want to figure out how to type
global
as a global, and since only node hasglobal
... we don't need to care about its existence (since any js runtime that hasglobal
also hasglobalThis
-- which we do support)for node / fastboot,
globalThis
was introduced in Node 12, which we already don't support as it's far beyond LTS support period. Prior to Node 12, this library will no longer work in fastboot mode (so you'd have to usev3.x
of test-waiters).