Skip to content

Commit 156a38f

Browse files
kooogejasnell
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 6a99224 commit 156a38f

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