Skip to content

Commit 610164d

Browse files
kooogegibfahn
authored andcommitted
test: use arrow function
PR-URL: #17318 Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 8009513 commit 610164d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-writeuint.js

+2-2
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)