Files
node/test/fixtures/v8-coverage/async-hooks.js
T
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();