diff --git a/src/vs/workbench/node/pluginHostMain.ts b/src/vs/workbench/node/pluginHostMain.ts index e1c1206ebb6..5e7125e8e02 100644 --- a/src/vs/workbench/node/pluginHostMain.ts +++ b/src/vs/workbench/node/pluginHostMain.ts @@ -55,7 +55,7 @@ export interface IInitData { }; } -const nativeExit = process.exit.bin(process); +const nativeExit = process.exit.bind(process); process.exit = function() { const err = new Error('An extension called process.exit() and this was prevented.'); console.warn((err).stack);