test: use arrow function

PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
koooge 2017-11-26 12:30:34 +00:00 committed by James M Snell
parent 6a99224c24
commit 156a38fef1

View File

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