Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5ac5663

Browse filesBrowse files
ykyzgibfahn
authored andcommitted
test: fix isNAN->Number.isNAN
PR-URL: #17309 Reviewed-By: Yosuke Furukawa <yosuke.furukawa@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@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>
1 parent cdab6ea commit 5ac5663
Copy full SHA for 5ac5663

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-writedouble.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-writedouble.js
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.