From f8a9698ca9599240223bed8305bbdfe4c4a5446a Mon Sep 17 00:00:00 2001 From: Evan Boyle Date: Mon, 26 Apr 2021 08:27:41 -0700 Subject: [PATCH] remove erroneous global promise rejection handler (#6864) --- sdk/nodejs/runtime/debuggable.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sdk/nodejs/runtime/debuggable.ts b/sdk/nodejs/runtime/debuggable.ts index 150af8418..a2312f7a1 100644 --- a/sdk/nodejs/runtime/debuggable.ts +++ b/sdk/nodejs/runtime/debuggable.ts @@ -114,12 +114,6 @@ export function debuggablePromise(p: Promise, ctx: any): Promise { }); } -process.on("unhandledRejection", err => { - if (err && (err).promise) { - console.log(`unhandled rejection: ${promiseDebugString((err).promise)}`); - } -}); - /** * errorString produces a string from an error, conditionally including additional diagnostics. * @internal