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 gibfahn committed Dec 19, 2017
1 parent 8098a6e commit c0c3666
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 @@ -129,10 +129,10 @@ function testUint(clazz) {
// Test 0 to 5 bytes.
for (let i = 0; i <= 5; i++) {
const errmsg = `byteLength: ${i}`;
assert.throws(function() {
assert.throws(() => {
data.writeUIntBE(val, 0, i);
}, /"value" argument is out of bounds/, errmsg);
assert.throws(function() {
assert.throws(() => {
data.writeUIntLE(val, 0, i);
}, /"value" argument is out of bounds/, errmsg);
val *= 0x100;
Expand Down

0 comments on commit c0c3666

Please sign in to comment.