Skip to content

Commit 2fb146d

Browse files
Apply suggestion from @joyeecheung
Co-authored-by: Joyee Cheung <joyeec9h3@gmail.com>
1 parent 46201a9 commit 2fb146d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/internal/async_hooks.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ class AsyncHookForInspector {
659659
// Used by internal consumers (the inspector and trace events) so that they do
660660
// not trigger the deprecation warning of the public async_hooks.createHook().
661661
function createHook(fns) {
662-
return new AsyncHook(fns);
662+
return new AsyncHookForInspector(fns);
663663
}
664664

665665
module.exports = {

0 commit comments

Comments
 (0)