From 4ae50f5c067bf450b6287aaafd94b458ca8ecea7 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Fri, 2 Jul 2021 16:37:41 +0200 Subject: refactor: use primordials for extensions/webidl (#11227) --- 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 85d924a00..63b6730db 100644 --- a/core/00_primordials.js +++ b/core/00_primordials.js @@ -167,6 +167,9 @@ primordials[name] = globalThis[name]; }); + // Create copy of isNaN + primordials[isNaN.name] = isNaN; + // Create copies of URI handling functions [ decodeURI, diff --git a/core/internal.d.ts b/core/internal.d.ts index 5586ad49b..cd1e51eee 100644 --- a/core/internal.d.ts +++ b/core/internal.d.ts @@ -68,6 +68,7 @@ declare namespace __bootstrap { safe: T, ): T; + export const isNaN: typeof globalThis.isNaN; export const decodeURI: typeof globalThis.decodeURI; export const decodeURIComponent: typeof globalThis.decodeURIComponent; export const encodeURI: typeof globalThis.encodeURI; -- cgit v1.2.3