summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorLuca Casonato <hello@lcas.dev>2021-07-02 16:37:41 +0200
committerGitHub <noreply@github.com>2021-07-02 16:37:41 +0200
commit4ae50f5c067bf450b6287aaafd94b458ca8ecea7 (patch)
tree83895b5a1b0fe944da9a5199ede6115ccefdec36 /core
parent68b4d60fd744de0717f56d8a8f4735a149d3c681 (diff)
refactor: use primordials for extensions/webidl (#11227)
Diffstat (limited to 'core')
-rw-r--r--core/00_primordials.js3
-rw-r--r--core/internal.d.ts1
2 files changed, 4 insertions, 0 deletions
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;