From e2cf7f3d8460834044e1eb860d72adc71080fc73 Mon Sep 17 00:00:00 2001 From: teppeis Date: Sun, 21 Dec 2014 19:13:34 +0900 Subject: [PATCH] remove unnecessary call to isNaN() from https://github.com/joyent/node/commit/b87ca794e31096b61ead46911baf92ba1c020a7d#diff-1 --- assert.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assert.js b/assert.js index be6a0db..6d15eb3 100644 --- a/assert.js +++ b/assert.js @@ -86,7 +86,7 @@ function replacer(key, value) { if (util.isUndefined(value)) { return '' + value; } - if (util.isNumber(value) && (isNaN(value) || !isFinite(value))) { + if (util.isNumber(value) && !isFinite(value)) { return value.toString(); } if (util.isFunction(value) || util.isRegExp(value)) {