src: fix Worker termination in inspector.waitForDebugger
#52527
Merged
inspector.waitForDebugger
#52527