Sha256: 5c00f7cffa1c7995058973998388b94b7f9fdf4775c1534f720468b44cbc1e10

Contents?: true

Size: 763 Bytes

Versions: 4

Compression:

Stored size: 763 Bytes

Contents

'use strict';
var $ = require('../internals/export');
var global = require('../internals/global');
var microtask = require('../internals/microtask');
var aCallable = require('../internals/a-callable');
var validateArgumentsLength = require('../internals/validate-arguments-length');
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, dontCallGetSet: true }, {
  queueMicrotask: function queueMicrotask(fn) {
    validateArgumentsLength(arguments.length, 1);
    aCallable(fn);
    var domain = IS_NODE && process.domain;
    microtask(domain ? domain.bind(fn) : fn);
  }
});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-0.26.10 packages/webpacker/node_modules/core-js/modules/web.queue-microtask.js
decidim-0.26.9 packages/webpacker/node_modules/core-js/modules/web.queue-microtask.js
decidim-0.28.0.rc5 packages/webpacker/node_modules/core-js/modules/web.queue-microtask.js
decidim-0.28.0.rc4 packages/webpacker/node_modules/core-js/modules/web.queue-microtask.js