Permalink
Browse files

test: use arrow function

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 Nov 26, 2017
1 parent 8098a6e commit c0c366634deeb23da014bca3b87d841a739fdae8
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/parallel/test-writeuint.js
@@ -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;

0 comments on commit c0c3666

Please sign in to comment.