()
| 674 | |
| 675 | // Cleanup function to remove event listener and prevent memory leak |
| 676 | const cleanup = () => { |
| 677 | watcher.removeListener('changed', onChanged); |
| 678 | opts.root.harness.watching = false; |
| 679 | opts.root.postRun(); |
| 680 | }; |
| 681 | |
| 682 | if (opts.signal) { |
| 683 | kResistStopPropagation ??= require('internal/event_target').kResistStopPropagation; |
nothing calls this directly
no test coverage detected