node/test/fixtures/v8-coverage/async-hooks.js
Benjamin 616fac9169 lib: make coverage work for Node.js
PR-URL: https://github.com/nodejs/node/pull/23941
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yang Guo <yangguo@chromium.org>
2018-11-03 18:35:04 -07:00

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();