Last change
on this file since b738035 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
544 bytes
|
Line | |
---|
1 | var $ = require('../internals/export');
|
---|
2 | var global = require('../internals/global');
|
---|
3 | var microtask = require('../internals/microtask');
|
---|
4 | var IS_NODE = require('../internals/engine-is-node');
|
---|
5 |
|
---|
6 | var process = global.process;
|
---|
7 |
|
---|
8 | // `queueMicrotask` method
|
---|
9 | // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-queuemicrotask
|
---|
10 | $({ global: true, enumerable: true, noTargetGet: true }, {
|
---|
11 | queueMicrotask: function queueMicrotask(fn) {
|
---|
12 | var domain = IS_NODE && process.domain;
|
---|
13 | microtask(domain ? domain.bind(fn) : fn);
|
---|
14 | }
|
---|
15 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.