Skip to content

Commit

Permalink
test: change callback function to arrow function
Browse files Browse the repository at this point in the history
PR-URL: #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>
  • Loading branch information
rt33 authored and gibfahn committed Jan 24, 2018
1 parent 35a51d4 commit e495981
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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!');

0 comments on commit e495981

Please sign in to comment.