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 authored and Gibson Fahnestock committed 2018-01-24 02:45:20 +00:00
1 parent 35a51d4a78
commit e495981586
1 file changed
+2 -2
@@ -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!');