node/test/fixtures/debug-uncaught.js

17 lines
278 B
JavaScript

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