From 3ee0c36453a2591139b7e35882e04c1e706e9253 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Mon, 5 Jul 2021 12:18:41 +0200 Subject: refactor: introduce primordials for web/streams (#11251) --- core/00_primordials.js | 3 +++ core/internal.d.ts | 1 + 2 files changed, 4 insertions(+) (limited to 'core') diff --git a/core/00_primordials.js b/core/00_primordials.js index 63b6730db..c6132620e 100644 --- a/core/00_primordials.js +++ b/core/00_primordials.js @@ -170,6 +170,9 @@ // Create copy of isNaN primordials[isNaN.name] = isNaN; + // Create copy of queueMicrotask + primordials["queueMicrotask"] = queueMicrotask; + // Create copies of URI handling functions [ decodeURI, diff --git a/core/internal.d.ts b/core/internal.d.ts index 8e52f4bf1..e582eb359 100644 --- a/core/internal.d.ts +++ b/core/internal.d.ts @@ -632,6 +632,7 @@ declare namespace __bootstrap { export const ObjectPrototypeToLocaleString: UncurryThis< typeof Object.prototype.toLocaleString >; + export const queueMicrotask: typeof globalThis.queueMicrotask; export const RangeError: typeof globalThis.RangeError; export const RangeErrorLength: typeof RangeError.length; export const RangeErrorName: typeof RangeError.name; -- cgit v1.2.3