Skip to content

Commit eccb5cb

Browse 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 891e469 commit eccb5cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-writeuint.js

Lines 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)