We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b58b07 commit 50a09fcCopy full SHA for 50a09fc
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