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>
This commit is contained in:
rt33 2017-12-18 17:56:43 +09:00 committed by Gireesh Punathil
parent 06033695ed
commit ed15c717bf

View File

@ -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!');