From 610164df12d47cfd5385548dba2e829af638d61a Mon Sep 17 00:00:00 2001 From: koooge Date: Sun, 26 Nov 2017 12:30:34 +0000 Subject: [PATCH] test: use arrow function PR-URL: https://github.com/nodejs/node/pull/17318 Reviewed-By: Vse Mozhet Byt Reviewed-By: Gireesh Punathil Reviewed-By: Jon Moss Reviewed-By: James M Snell --- test/parallel/test-writeuint.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-writeuint.js b/test/parallel/test-writeuint.js index 620d151d4594fb..c79a858dc437d2 100644 --- a/test/parallel/test-writeuint.js +++ b/test/parallel/test-writeuint.js @@ -150,10 +150,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;