Skip to content

Commit 5ac5663

Browse files
ykyzgibfahn
authored andcommitted
test: fix isNAN->Number.isNAN
PR-URL: #17309 Reviewed-By: Yosuke Furukawa <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent cdab6ea commit 5ac5663

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-writedouble.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ function test(clazz) {
189189
// Darwin ia32 does the other kind of NaN.
190190
// Compiler bug. No one really cares.
191191
assert(0x7F === buffer[15] || 0xFF === buffer[15]);
192-
assert.ok(isNaN(buffer.readDoubleBE(0)));
193-
assert.ok(isNaN(buffer.readDoubleLE(8)));
192+
assert.ok(Number.isNaN(buffer.readDoubleBE(0)));
193+
assert.ok(Number.isNaN(buffer.readDoubleLE(8)));
194194
}
195195

196196

0 commit comments

Comments
 (0)