Lines Matching refs:destroy
15 write.destroy();
22 this.destroy(new Error('asd'));
46 write.destroy(expected);
68 write.destroy(expected);
75 destroy: common.mustCall(function(err, cb) {
89 write.destroy(expected);
103 write.destroy();
125 write.destroy();
148 write.destroy();
169 write.destroy(expected);
170 write.destroy(new Error('kaboom 2'));
179 destroy: common.mustCall(function(err, cb) {
190 writable.destroy(new Error('hello'));
200 writable.destroy();
205 // Test case where `writable.destroy()` is called again with an error before
207 writable.destroy(new Error('kaboom 2'));
222 // The internal destroy() mechanism should not be triggered
224 write.destroy();
241 // Destroy and destroy callback
246 write.destroy();
250 write.destroy(expected, common.mustCall((err) => {
274 write.destroy();
300 write.destroy();
310 // Call end(cb) after error & destroy
316 write.destroy();
328 // Call end(cb) after finish & destroy
334 write.destroy();
346 // Call end(cb) after error & destroy and don't trigger
359 write.destroy(_err);
403 write.destroy();
471 write.destroy();
472 write.destroy();
488 s.destroy(_err);