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 <vsemozhetbyt@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
koooge authored and jasnell committed Nov 26, 2017
1 parent 6a99224 commit 156a38f
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 156a38f

Please sign in to comment.