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 <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Daijiro Wachi <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Jon Moss <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
hiromoon authored and gibfahn committed Dec 20, 2017
1 parent 8b64df0 commit 7f4aafc
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 @@ -50,7 +50,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 7f4aafc

Please sign in to comment.