Skip to content

Commit

Permalink
test: fix isNAN->Number.isNAN
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
ykyz authored and MylesBorins committed Dec 12, 2017
1 parent 91e2117 commit 1adccc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-writedouble.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ function test(clazz) {
// Darwin ia32 does the other kind of NaN.
// Compiler bug. No one really cares.
assert(0x7F === buffer[15] || 0xFF === buffer[15]);
assert.ok(isNaN(buffer.readDoubleBE(0)));
assert.ok(isNaN(buffer.readDoubleLE(8)));
assert.ok(Number.isNaN(buffer.readDoubleBE(0)));
assert.ok(Number.isNaN(buffer.readDoubleLE(8)));
}


Expand Down

0 comments on commit 1adccc6

Please sign in to comment.