diff options
author | Mithun Sasidharan <mithunsasidharan89@gmail.com> | 2017-12-07 08:24:49 +0530 |
---|---|---|
committer | Anatoli Papirovski <apapirovski@mac.com> | 2017-12-08 14:16:27 -0500 |
commit | b681d8d1a1400847780a6d2b07bbb879fb72a812 (patch) | |
tree | 5377d21d90fa870ffe01a7c74d92f3511bb128b0 /test/parallel/test-os.js | |
parent | f3f66a8d5a9b67216d19f6307b2a615f60185333 (diff) | |
download | android-node-v8-b681d8d1a1400847780a6d2b07bbb879fb72a812.tar.gz android-node-v8-b681d8d1a1400847780a6d2b07bbb879fb72a812.tar.bz2 android-node-v8-b681d8d1a1400847780a6d2b07bbb879fb72a812.zip |
test: use Number.isNaN instead of global isNaN
PR-URL: https://github.com/nodejs/node/pull/17515
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'test/parallel/test-os.js')
-rw-r--r-- | test/parallel/test-os.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-os.js b/test/parallel/test-os.js index b35faeb7cd..f8e383e497 100644 --- a/test/parallel/test-os.js +++ b/test/parallel/test-os.js @@ -28,7 +28,7 @@ const { inspect } = require('util'); const is = { number: (value, key) => { - assert(!isNaN(value), `${key} should not be NaN`); + assert(!Number.isNaN(value), `${key} should not be NaN`); assert.strictEqual(typeof value, 'number'); }, string: (value) => { assert.strictEqual(typeof value, 'string'); }, |