mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
3f6e1dae7e
PR-URL: https://github.com/nodejs/node/pull/8087 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: targos - Michaël Zasso <mic.besace@gmail.com> Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com> Reviewed-By: jasnell - James M Snell <jasnell@gmail.com>
17 lines
278 B
JavaScript
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();
|