Skip to content

Commit

Permalink
test: use arrow function
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
koooge authored and MylesBorins committed Dec 12, 2017
1 parent b420209 commit d8e4d95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-writeuint.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,10 @@ function testUint(clazz) {
type: RangeError,
message: /^The value "[^"]*" is invalid for option "value"$/
}, 2);
assert.throws(function() {
assert.throws(() => {
data.writeUIntBE(val, 0, i);
}, errMsg);
assert.throws(function() {
assert.throws(() => {
data.writeUIntLE(val, 0, i);
}, errMsg);
val *= 0x100;
Expand Down

0 comments on commit d8e4d95

Please sign in to comment.