remove erroneous global promise rejection handler (#6864)

This commit is contained in:
Evan Boyle 2021-04-26 08:27:41 -07:00 committed by GitHub
parent 288d67d78b
commit f8a9698ca9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -114,12 +114,6 @@ export function debuggablePromise<T>(p: Promise<T>, ctx: any): Promise<T> {
});
}
process.on("unhandledRejection", err => {
if (err && (<any>err).promise) {
console.log(`unhandled rejection: ${promiseDebugString((<any>err).promise)}`);
}
});
/**
* errorString produces a string from an error, conditionally including additional diagnostics.
* @internal