jstime_core 0.66.0

Another JS Runtime
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// queueMicrotask
// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#microtask-queuing

'use strict';

// eslint-disable-next-line no-unused-expressions
(({ queueMicrotask }) => {
  globalThis.queueMicrotask = (cb) => {
    if (typeof cb !== 'function') {
      throw new TypeError('queueMicrotask requires a callback function');
    }
    return queueMicrotask(cb);
  };
});