Permalink
Browse files

test: make use of Number.isNaN to test-readfloat.js

PR-URL: #17310
Reviewed-By: Yosuke Furukawa <yosuke.furukawa@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information...
hiromoon authored and gibfahn committed Nov 26, 2017
1 parent 1cd4076 commit 32ebcf7fd0cd0c1e99e151538ef29ca52fe04226
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/parallel/test-readfloat.js
@@ -29,7 +29,7 @@ function test(clazz) {
buffer[1] = 0xff;
buffer[2] = 0x7f;
buffer[3] = 0x7f;
assert.ok(isNaN(buffer.readFloatBE(0)));
assert.ok(Number.isNaN(buffer.readFloatBE(0)));
assert.strictEqual(3.4028234663852886e+38, buffer.readFloatLE(0));
buffer[0] = 0xab;

0 comments on commit 32ebcf7

Please sign in to comment.