• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict';
2
3const common = require('../common');
4const initHooks = require('./init-hooks');
5
6const hooks = initHooks();
7hooks.enable();
8
9setImmediate(() => {
10  throw new Error();
11});
12
13setTimeout(() => {
14  throw new Error();
15}, 1);
16
17process.on('uncaughtException', common.mustCall(2));
18