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 ed2619e commit 48e435fCopy full SHA for 48e435f
src/bootstrap.js
@@ -28,14 +28,12 @@
28
// increase number of stack frames(from 10, https://github.com/v8/v8/wiki/Stack-Trace-API)
29
Error.stackTraceLimit = 100;
30
31
- if (!process.env['VSCODE_HANDLES_SIGPIPE']) {
+ if (typeof process !== 'undefined' && !process.env['VSCODE_HANDLES_SIGPIPE']) {
32
// Workaround for Electron not installing a handler to ignore SIGPIPE
33
// (https://github.com/electron/electron/issues/13254)
34
- if (typeof process !== 'undefined') {
35
- process.on('SIGPIPE', () => {
36
- console.error(new Error('Unexpected SIGPIPE'));
37
- });
38
- }
+ process.on('SIGPIPE', () => {
+ console.error(new Error('Unexpected SIGPIPE'));
+ });
39
}
40
41
//#endregion
0 commit comments