mirror of
https://github.com/nodejs/node.git
synced 2025-05-06 22:56:06 +00:00

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>
18 lines
594 B
JavaScript
18 lines
594 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
const assert = require('assert');
|
|
const path = require('path');
|
|
const spawnSync = require('child_process').spawnSync;
|
|
|
|
const emitUncaught = path.join(common.fixturesDir, 'debug-uncaught.js');
|
|
const result = spawnSync(process.execPath, [emitUncaught], {encoding: 'utf8'});
|
|
|
|
const expectedMessage =
|
|
"There was an internal error in Node's debugger. Please report this bug.";
|
|
|
|
assert.strictEqual(result.status, 1);
|
|
assert(result.stderr.includes(expectedMessage));
|
|
assert(result.stderr.includes('Error: sterrance'));
|
|
|
|
console.log(result.stdout);
|