node/test/fixtures/v8-coverage/async-hooks.js

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