web.set-timeout.js 446 B

1234567891011
  1. var $ = require('../internals/export');
  2. var global = require('../internals/global');
  3. var schedulersFix = require('../internals/schedulers-fix');
  4. var setTimeout = schedulersFix(global.setTimeout, true);
  5. // Bun / IE9- setTimeout additional parameters fix
  6. // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-settimeout
  7. $({ global: true, bind: true, forced: global.setTimeout !== setTimeout }, {
  8. setTimeout: setTimeout
  9. });