joyent/node — pull request #7913 by cjihrig (2014-07-09 01:13:01+00:00)
Title: 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.