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