Skip to content

Commit c0c3666

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 8098a6e commit c0c3666

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
@@ -129,10 +129,10 @@ function testUint(clazz) {
129129
// Test 0 to 5 bytes.
130130
for (let i = 0; i <= 5; i++) {
131131
const errmsg = `byteLength: ${i}`;
132-
assert.throws(function() {
132+
assert.throws(() => {
133133
data.writeUIntBE(val, 0, i);
134134
}, /"value" argument is out of bounds/, errmsg);
135-
assert.throws(function() {
135+
assert.throws(() => {
136136
data.writeUIntLE(val, 0, i);
137137
}, /"value" argument is out of bounds/, errmsg);
138138
val *= 0x100;

0 commit comments

Comments
 (0)