lib: remove and restructure calls to isNaN()
authorcjihrig <cjihrig@gmail.com>
Wed, 9 Jul 2014 01:06:05 +0000 (21:06 -0400)
committerFedor Indutny <fedor@indutny.com>
Thu, 10 Jul 2014 12:21:50 +0000 (15:21 +0300)
commitb87ca794e31096b61ead46911baf92ba1c020a7d
treeb53844cf4fd4b44d3579353f72dd5ad39a83cea4
parent71fc4d9486ed13276e0f27ab755e6e233d91c714
lib: remove and restructure calls to isNaN()

Switch condition order to check for null before calling isNaN().
Also remove two unnecessary calls to isNaN() that are already
covered by calls to isFinite(). This commit targets v0.10, as
opposed to #7891, which targets master (suggested by
@bnoordhuis). Closes #7840.

Signed-off-by: Fedor Indutny <fedor@indutny.com>
lib/_stream_readable.js
lib/assert.js
lib/net.js