Browse Source

remove unnecessary call to isNaN()

from b87ca794e3 (diff-1)
deapstrictequal
teppeis 10 years ago
parent
commit
e2cf7f3d84
  1. 2
      assert.js

2
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)) {

Loading…
Cancel
Save