From c2c115ebd8e29122ea0a1aaf041871189917e196 Mon Sep 17 00:00:00 2001 From: Kenta Moriuchi Date: Mon, 8 Jan 2024 07:20:02 +0900 Subject: fix(ext): enable prefer-primordials for internal TypeScript (#21813) Enabled prefer-primordials lint for ext/cron and ext/kv. --- ext/webidl/00_webidl.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ext/webidl') 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; } -- cgit v1.2.3