diff options
author | rt33 <rt33@lastcycle.com> | 2017-12-18 17:56:43 +0900 |
---|---|---|
committer | Gireesh Punathil <gpunathi@in.ibm.com> | 2017-12-19 14:07:51 +0530 |
commit | ed15c717bf87b99d932b146ccce6049f7e0146d4 (patch) | |
tree | f231bee354466ea5cdf1ddfdb083694a9d2252d5 | |
parent | 06033695ed0bfca505988ab922035461f282556e (diff) | |
download | android-node-v8-ed15c717bf87b99d932b146ccce6049f7e0146d4.tar.gz android-node-v8-ed15c717bf87b99d932b146ccce6049f7e0146d4.tar.bz2 android-node-v8-ed15c717bf87b99d932b146ccce6049f7e0146d4.zip |
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!'); |