aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrt33 <rt33@lastcycle.com>2017-12-18 17:56:43 +0900
committerGireesh Punathil <gpunathi@in.ibm.com>2017-12-19 14:07:51 +0530
commited15c717bf87b99d932b146ccce6049f7e0146d4 (patch)
treef231bee354466ea5cdf1ddfdb083694a9d2252d5
parent06033695ed0bfca505988ab922035461f282556e (diff)
downloadandroid-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.js4
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!');