(enable)
| 15 | } |
| 16 | |
| 17 | function setTraceSigInt(enable) { |
| 18 | if (!isMainThread) |
| 19 | throw new ERR_WORKER_UNSUPPORTED_OPERATION('Calling util.setTraceSigInt'); |
| 20 | if (enable) { |
| 21 | getSigintWatchdog().start(); |
| 22 | } else { |
| 23 | getSigintWatchdog().stop(); |
| 24 | } |
| 25 | }; |
| 26 | |
| 27 | module.exports = { |
| 28 | setTraceSigInt, |
nothing calls this directly
no test coverage detected