From a7cc179c8be1e5ba3a5374e391c243c3a031c1bd 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 --- .../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!');