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:
parent
6a99224c24
commit
156a38fef1
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user