(msg)
| 32 | } |
| 33 | |
| 34 | function wasDisposedWhenOpenHandler(msg) { |
| 35 | assert.strictEqual(msg.cmd, 'url'); |
| 36 | assert.strictEqual(msg.url, undefined); |
| 37 | ping(firstPort, common.mustCall((err) => { |
| 38 | assert(err, 'expected ping to inspector port to fail'); |
| 39 | child.send({ cmd: 'dispose' }); |
| 40 | child.once('message', common.mustCall(wasReDisposedHandler)); |
| 41 | })); |
| 42 | } |
| 43 | |
| 44 | function wasReDisposedHandler(msg) { |
| 45 | assert.strictEqual(msg.cmd, 'url'); |