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 cdab6ea

Browse filesBrowse files
hiromoongibfahn
authored andcommitted
test: make use of Number.isNaN to test-readfloat.js
PR-URL: #17310 Reviewed-By: Yosuke Furukawa <yosuke.furukawa@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@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 afe4c33 commit cdab6ea
Copy full SHA for cdab6ea

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

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

‎test/parallel/test-readfloat.js‎

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