(inspectPort)
| 31 | |
| 32 | let debugPortOffset = 1; |
| 33 | function getInspectPort(inspectPort) { |
| 34 | if (typeof inspectPort === 'function') { |
| 35 | inspectPort = inspectPort(); |
| 36 | } else if (inspectPort == null) { |
| 37 | inspectPort = process.debugPort + debugPortOffset; |
| 38 | if (inspectPort > kMaxPort) |
| 39 | inspectPort = inspectPort - kMaxPort + kMinPort - 1; |
| 40 | debugPortOffset++; |
| 41 | } |
| 42 | validatePort(inspectPort); |
| 43 | |
| 44 | return inspectPort; |
| 45 | } |
| 46 | |
| 47 | let session; |
| 48 | function sendInspectorCommand(cb, onError) { |
no outgoing calls
no test coverage detected
searching dependent graphs…