From d8e4d9593b8708ed9924d12d63da7b666ed339d7 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 3ba4456beaaa38..0863135b2b8b05 100644 --- a/test/parallel/test-writeuint.js +++ b/test/parallel/test-writeuint.js @@ -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;