From a66fc638d5815db600c0693fd62379488693b3ca Mon Sep 17 00:00:00 2001 From: Douglas Crockford Date: Mon, 6 Nov 2017 13:00:54 -0800 Subject: [PATCH] isFinite --- jslint.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/jslint.js b/jslint.js index e52507d6f..c51b6d3f1 100644 --- a/jslint.js +++ b/jslint.js @@ -290,11 +290,11 @@ var jslint = (function JSLint() { "decodeURIComponent", "encodeURI", "encodeURIComponent", "Error", "EvalError", "Float32Array", "Float64Array", "Generator", "GeneratorFunction", "Int8Array", "Int16Array", "Int32Array", "Intl", - "isFinite", "JSON", "Map", "Math", "Number", "Object", "parseInt", - "parseFloat", "Promise", "Proxy", "RangeError", "ReferenceError", - "Reflect", "RegExp", "Set", "String", "Symbol", "SyntaxError", "System", - "TypeError", "Uint8Array", "Uint8ClampedArray", "Uint16Array", - "Uint32Array", "URIError", "WeakMap", "WeakSet" + "JSON", "Map", "Math", "Number", "Object", "parseInt", "parseFloat", + "Promise", "Proxy", "RangeError", "ReferenceError", "Reflect", "RegExp", + "Set", "String", "Symbol", "SyntaxError", "System", "TypeError", + "Uint8Array", "Uint8ClampedArray", "Uint16Array", "Uint32Array", + "URIError", "WeakMap", "WeakSet" ]; var bundle = { @@ -2451,14 +2451,14 @@ var jslint = (function JSLint() { return token; }); constant("Infinity", "number", Infinity); - constant("isNaN", "function", function () { - warn("number_isNaN", token); - return token; - }); constant("isFinite", "function", function () { warn("expected_a_b", token, "Number.isFinite", "isFinite"); return token; }); + constant("isNaN", "function", function () { + warn("number_isNaN", token); + return token; + }); constant("NaN", "number", NaN); constant("null", "null", null); constant("this", "object", function () {