(stream)
| 33 | |
| 34 | |
| 35 | function test(stream) { |
| 36 | const err = new Error('DESTROYED'); |
| 37 | stream.on('open', function() { |
| 38 | stream.destroy(err); |
| 39 | }); |
| 40 | stream.on('error', common.mustCall(function(err_) { |
| 41 | assert.strictEqual(err_, err); |
| 42 | })); |
| 43 | } |
no test coverage detected