web.set-interval.js 468 B

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