MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / resetWarningHandler

Function resetWarningHandler

source code/utils/warningHandler.ts:54–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52
53// For testing only - allows resetting the warning handler state
54export function resetWarningHandler(): void {
55 if (warningHandler) {
56 process.removeListener('warning', warningHandler)
57 }
58 warningHandler = null
59 warningCounts.clear()
60}
61
62export function initializeWarningHandler(): void {
63 // Only set up handler once - check if our handler is already installed

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected