summaryrefslogtreecommitdiff
path: root/ext/webidl/00_webidl.js
diff options
context:
space:
mode:
authorKenta Moriuchi <moriken@kimamass.com>2024-01-08 07:20:02 +0900
committerGitHub <noreply@github.com>2024-01-07 23:20:02 +0100
commitc2c115ebd8e29122ea0a1aaf041871189917e196 (patch)
tree0dfa8f71a6a9568bf52b56a4a3b55b667daecf44 /ext/webidl/00_webidl.js
parenta731647a5198905d439021737eaa8207ca9f7498 (diff)
fix(ext): enable prefer-primordials for internal TypeScript (#21813)
Enabled prefer-primordials lint for ext/cron and ext/kv.
Diffstat (limited to 'ext/webidl/00_webidl.js')
-rw-r--r--ext/webidl/00_webidl.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/webidl/00_webidl.js b/ext/webidl/00_webidl.js
index a702e7324..b1a2902f8 100644
--- a/ext/webidl/00_webidl.js
+++ b/ext/webidl/00_webidl.js
@@ -23,7 +23,6 @@ const {
Int16Array,
Int32Array,
Int8Array,
- isNaN,
MathFloor,
MathFround,
MathMax,
@@ -355,7 +354,7 @@ converters.float = (V, prefix, context, _opts) => {
converters["unrestricted float"] = (V, _prefix, _context, _opts) => {
const x = toNumber(V);
- if (isNaN(x)) {
+ if (NumberIsNaN(x)) {
return x;
}