We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7019ed commit aa4cccdCopy full SHA for aa4cccd
1 file changed
graal-nodejs/test/graal/unit/spawn.js
@@ -113,4 +113,11 @@ describe('Spawn', function () {
113
assert.strictEqual(result.status, 1);
114
});
115
}
116
+ it('should finish gracefully when the process is terminated from an inner context', function () {
117
+ var code = `require('vm').runInNewContext('process.exit()', { process: process })`;
118
+ var result = spawnSync(process.execPath, ['-e', code]);
119
+ assert.strictEqual(result.stdout.toString(), '');
120
+ assert.strictEqual(result.stderr.toString(), '');
121
+ assert.strictEqual(result.status, 0);
122
+ });
123
0 commit comments