From c0c366634deeb23da014bca3b87d841a739fdae8 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 e91e1d256d0261..5a2f2da9da75e8 100644 --- a/test/parallel/test-writeuint.js +++ b/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;