mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
debt - less use of <any> casts
This commit is contained in:
@@ -20,7 +20,7 @@ import * as errors from 'vs/base/common/errors';
|
||||
const nativeExit = process.exit.bind(process);
|
||||
process.exit = function () {
|
||||
const err = new Error('An extension called process.exit() and this was prevented.');
|
||||
console.warn((<any>err).stack);
|
||||
console.warn(err.stack);
|
||||
};
|
||||
export function exit(code?: number) {
|
||||
nativeExit(code);
|
||||
|
||||
Reference in New Issue
Block a user