Unverified Commit c6a00f4f authored by Josh Story's avatar Josh Story Committed by GitHub

Fix type for unhandled rejection handler process.removeListener (#83748)

parent 51b14409
...@@ -221,7 +221,7 @@ function installUnhandledRejectionFilter(): void { ...@@ -221,7 +221,7 @@ function installUnhandledRejectionFilter(): void {
} }
// For other events, use the original method // For other events, use the original method
return originalProcessRemoveListener.call(process, event, listener) return originalProcessRemoveListener.call(process, event, listener)
} as typeof process.off } as typeof process.removeListener
) )
// If the process.on is referentially process.addListener then share the patched version as well // If the process.on is referentially process.addListener then share the patched version as well
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment