main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
564 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 | var $ = require('../internals/export');
|
---|
3 | var globalThis = require('../internals/global-this');
|
---|
4 | var setTask = require('../internals/task').set;
|
---|
5 | var schedulersFix = require('../internals/schedulers-fix');
|
---|
6 |
|
---|
7 | // https://github.com/oven-sh/bun/issues/1633
|
---|
8 | var setImmediate = globalThis.setImmediate ? schedulersFix(setTask, false) : setTask;
|
---|
9 |
|
---|
10 | // `setImmediate` method
|
---|
11 | // http://w3c.github.io/setImmediate/#si-setImmediate
|
---|
12 | $({ global: true, bind: true, enumerable: true, forced: globalThis.setImmediate !== setImmediate }, {
|
---|
13 | setImmediate: setImmediate
|
---|
14 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.