test: add trailing commas in async-hooks tests (#45549)

PR-URL: https://github.com/nodejs/node/pull/45549
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
This commit is contained in:
Antoine du Hamel 2022-11-21 12:43:47 -05:00 committed by GitHub
parent 4f20c882ec
commit cf46746b8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
49 changed files with 78 additions and 79 deletions

View file

@ -6,7 +6,7 @@ const { readFile } = require('fs');
const {
createHook,
executionAsyncResource,
AsyncResource
AsyncResource,
} = require('async_hooks');
// Ignore any asyncIds created before our hook is active.
@ -32,7 +32,7 @@ createHook({
if (asyncId >= firstSeenAsyncId) {
afterHook(asyncId);
}
}
},
}).enable();
const beforeHook = common.mustCallAtLeast(