blob: 816bd95df02e2934124db6636e884b6901e10396 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
'use strict';
const common = require('../common');
const assert = require('assert');
const { spawn } = require('child_process');
function CheckNoSignalAndErrorCodeOne(code, signal) {
assert.strictEqual(null, signal);
assert.strictEqual(1, code);
}
const child = spawn(process.execPath,
['--trace-event-categories', 'madeup', '-e',
'throw new Error()'], { stdio: 'inherit' });
child.on('exit', common.mustCall(CheckNoSignalAndErrorCodeOne));
|