(c)
| 41 | |
| 42 | let lastCalled = -1; |
| 43 | function makeCallback(c) { |
| 44 | let called = false; |
| 45 | return function() { |
| 46 | if (called) |
| 47 | throw new Error(`called callback #${c} more than once`); |
| 48 | called = true; |
| 49 | if (c < lastCalled) { |
| 50 | throw new Error( |
| 51 | `callbacks out of order. last=${lastCalled} current=${c}`); |
| 52 | } |
| 53 | lastCalled = c; |
| 54 | cbcount++; |
| 55 | }; |
| 56 | } |
| 57 | |
| 58 | server.listen(0, function() { |
| 59 | const client = net.createConnection(server.address().port); |
no outgoing calls
no test coverage detected
searching dependent graphs…