• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 'use strict';
2 const common = require('../common');
3 const async_hooks = require('async_hooks');
4 
5 Promise.resolve(1).then(common.mustCall(() => {
6   async_hooks.createHook({
7     init: common.mustCall(),
8     before: common.mustCallAtLeast(),
9     after: common.mustCallAtLeast(2)
10   }).enable();
11 
12   process.nextTick(common.mustCall());
13 }));
14