source: trip-planner-front/node_modules/core-js/modules/web.queue-microtask.js@ b738035

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 
1var $ = require('../internals/export');
2var global = require('../internals/global');
3var microtask = require('../internals/microtask');
4var IS_NODE = require('../internals/engine-is-node');
5
6var 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.