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 d8e4d95

Browse filesBrowse files
kooogeMylesBorins
authored andcommitted
test: use arrow function
PR-URL: #17318 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@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 b420209 commit d8e4d95
Copy full SHA for d8e4d95

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-writeuint.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-writeuint.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,10 @@ function testUint(clazz) {
154154
type: RangeError,
155155
message: /^The value "[^"]*" is invalid for option "value"$/
156156
}, 2);
157-
assert.throws(function() {
157+
assert.throws(() => {
158158
data.writeUIntBE(val, 0, i);
159159
}, errMsg);
160-
assert.throws(function() {
160+
assert.throws(() => {
161161
data.writeUIntLE(val, 0, i);
162162
}, errMsg);
163163
val *= 0x100;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.