diff options
author | rt33 <rt33@lastcycle.com> | 2017-12-18 17:56:43 +0900 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2018-02-12 19:28:21 -0500 |
commit | cb7854354fdd92190c50f9fc736f619d1a677d30 (patch) | |
tree | 37bdb08250cc6b567b85b75f69bb36e300d684ed | |
parent | 979af518c196060c57dafaec64879c5ed849ba2a (diff) | |
download | node-new-cb7854354fdd92190c50f9fc736f619d1a677d30.tar.gz |
test: change callback function to arrow function
PR-URL: https://github.com/nodejs/node/pull/17734
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
-rw-r--r-- | test/parallel/test-domain-no-error-handler-abort-on-uncaught-9.js | 4 |
1 files 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 2e86a2125e..ae30a1dea6 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!'); |