From ed15c717bf87b99d932b146ccce6049f7e0146d4 Mon Sep 17 00:00:00 2001 From: rt33 Date: Mon, 18 Dec 2017 17:56:43 +0900 Subject: [PATCH] test: change callback function to arrow function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/17734 Reviewed-By: James M Snell Reviewed-By: Colin Ihrig Reviewed-By: Jon Moss Reviewed-By: Tobias Nießen Reviewed-By: Gireesh Punathil --- .../test-domain-no-error-handler-abort-on-uncaught-9.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-domain-no-error-handler-abort-on-uncaught-9.js b/test/parallel/test-domain-no-error-handler-abort-on-uncaught-9.js index 2e86a2125e86ee..ae30a1dea68b0b 100644 --- a/test/parallel/test-domain-no-error-handler-abort-on-uncaught-9.js +++ b/test/parallel/test-domain-no-error-handler-abort-on-uncaught-9.js @@ -10,8 +10,8 @@ function test() { d.on('error', function errorHandler() { }); - d.run(function() { - d2.run(function() { + d.run(() => { + d2.run(() => { const fs = require('fs'); fs.exists('/non/existing/file', function onExists() { throw new Error('boom!');