Skip to content

Commit

Permalink
test: make use of Number.isNaN to test-readfloat.js
Browse files Browse the repository at this point in the history
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 Dec 19, 2017
1 parent 1cd4076 commit 32ebcf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-readfloat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 32ebcf7

Please sign in to comment.