summaryrefslogtreecommitdiff
path: root/test/fixtures/debug-uncaught.js
blob: f09d62f3580f32ad5627cfd779c1b79868c5a8eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
'use strict';

require('../common');
const assert = require('assert');
const debug = require('_debugger');

function emit() {
  const error = new Error('sterrance');
  process.emit('uncaughtException', error);
}

assert.doesNotThrow(emit);

debug.start(['fhqwhgads']);

emit();