bin => bind

This commit is contained in:
Benjamin Pasero
2015-11-24 18:00:33 +01:00
parent 5d9a4f3434
commit 1ef99fc702

View File

@@ -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((<any>err).stack);