mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-23 00:45:16 +00:00
16 lines
544 B
JavaScript
16 lines
544 B
JavaScript
|
var $ = require('../internals/export');
|
||
|
var global = require('../internals/global');
|
||
|
var microtask = require('../internals/microtask');
|
||
|
var IS_NODE = require('../internals/engine-is-node');
|
||
|
|
||
|
var process = global.process;
|
||
|
|
||
|
// `queueMicrotask` method
|
||
|
// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-queuemicrotask
|
||
|
$({ global: true, enumerable: true, noTargetGet: true }, {
|
||
|
queueMicrotask: function queueMicrotask(fn) {
|
||
|
var domain = IS_NODE && process.domain;
|
||
|
microtask(domain ? domain.bind(fn) : fn);
|
||
|
}
|
||
|
});
|