Skip to content

Commit d8e4d95

Browse files
kooogeMylesBorins
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 b420209 commit d8e4d95

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