mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
616fac9169
PR-URL: https://github.com/nodejs/node/pull/23941 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yang Guo <yangguo@chromium.org>
12 lines
268 B
JavaScript
12 lines
268 B
JavaScript
const async_hooks = require('async_hooks');
|
|
const common = require('../../common');
|
|
|
|
const hook = async_hooks.createHook({
|
|
init: common.mustNotCall(),
|
|
before: common.mustNotCall(),
|
|
after: common.mustNotCall(),
|
|
destroy: common.mustNotCall()
|
|
});
|
|
|
|
hook.enable();
|