Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cdab6ea

Browse files
hiromoongibfahn
authored andcommittedDec 19, 2017
test: make use of Number.isNaN to test-readfloat.js
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]>
1 parent afe4c33 commit cdab6ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎test/parallel/test-readfloat.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function test(clazz) {
5050
buffer[1] = 0xff;
5151
buffer[2] = 0x7f;
5252
buffer[3] = 0x7f;
53-
assert.ok(isNaN(buffer.readFloatBE(0)));
53+
assert.ok(Number.isNaN(buffer.readFloatBE(0)));
5454
assert.strictEqual(3.4028234663852886e+38, buffer.readFloatLE(0));
5555

5656
buffer[0] = 0xab;

0 commit comments

Comments
 (0)
Please sign in to comment.