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 610164d

Browse filesBrowse files
kooogegibfahn
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 8009513 commit 610164d
Copy full SHA for 610164d

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
@@ -150,10 +150,10 @@ function testUint(clazz) {
150150
// Test 0 to 5 bytes.
151151
for (let i = 0; i <= 5; i++) {
152152
const errmsg = `byteLength: ${i}`;
153-
assert.throws(function() {
153+
assert.throws(() => {
154154
data.writeUIntBE(val, 0, i);
155155
}, /"value" argument is out of bounds/, errmsg);
156-
assert.throws(function() {
156+
assert.throws(() => {
157157
data.writeUIntLE(val, 0, i);
158158
}, /"value" argument is out of bounds/, errmsg);
159159
val *= 0x100;

0 commit comments

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