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:
parent
06033695ed
commit
ed15c717bf
@ -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!');
|
||||
|
Loading…
x
Reference in New Issue
Block a user