mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
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:
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!');
|
||||
|
||||
Reference in new issue
Block a user