You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
533 B
13 lines
533 B
var $ = require('../internals/export');
|
|
var global = require('../internals/global');
|
|
var setTask = require('../internals/task').set;
|
|
var schedulersFix = require('../internals/schedulers-fix');
|
|
|
|
// https://github.com/oven-sh/bun/issues/1633
|
|
var setImmediate = global.setImmediate ? schedulersFix(setTask, false) : setTask;
|
|
|
|
// `setImmediate` method
|
|
// http://w3c.github.io/setImmediate/#si-setImmediate
|
|
$({ global: true, bind: true, enumerable: true, forced: global.setImmediate !== setImmediate }, {
|
|
setImmediate: setImmediate
|
|
});
|
|
|