• Home
  • Raw
  • Download

Lines Matching +full:no +full:- +full:err

48       .catch(common.mustCall((err) => {
49 assert.strictEqual(err.message, 'asd');
65 for await (const d of readable) { // eslint-disable-line no-unused-vars
100 (item, i) => assert.strictEqual(item.value, 'hello-' + i), 5));
103 readable.push('hello-0');
104 readable.push('hello-1');
105 readable.push('hello-2');
106 readable.push('hello-3');
107 readable.push('hello-4');
128 readable.push('hello-0');
129 readable.push('hello-1');
130 readable.push('hello-2');
135 (item) => assert.strictEqual(item.value, 'hello-' + k++), 3));
142 readable.push('hello-3');
143 readable.push('hello-4');
148 (item) => assert.strictEqual(item.value, 'hello-' + k++), 2));
174 readable.push('hello-0');
175 readable.push('hello-1');
176 readable.push('hello-2');
181 (item, i) => assert.strictEqual(item.value, 'hello-' + i), max));
184 promise.catch(common.mustCall((err) => {
185 assert.strictEqual(err.message, 'kaboom');
206 const err = new Error('kaboom');
208 await assert.rejects(iterator.next.bind(iterator), err);
243 let err;
245 // eslint-disable-next-line no-unused-vars
248 err = e;
250 assert.strictEqual(err.message, 'kaboom from read');
271 let err = null;
273 // eslint-disable-next-line no-unused-vars
278 err = e;
281 assert.strictEqual(err.message, 'kaboom');
294 let err = null;
301 err = e;
304 assert.strictEqual(err.message, 'kaboom');
320 let err = null;
327 err = e;
330 assert.strictEqual(err.message, 'kaboom');
409 // no-op
423 // no-op
428 const err = new Error('kaboom');
430 assert.strictEqual(e, err);
432 readable.destroy(err);
436 assert.strictEqual(e, err);
452 // eslint-disable-next-line no-unused-vars
455 // eslint-disable-next-line no-unused-vars
461 console.log('destroy mid-stream does not error');
470 // eslint-disable-next-line no-unused-vars
543 const err = new Error('kaboom');
544 r.destroy(err);
553 assert.strictEqual(e, err);
573 destroy(err, callback) { argument
580 it.next().catch(common.mustCall((err) => {
581 assert.strictEqual(err, _err);
586 // Don't destroy if no auto destroy.
597 for await (const chunk of r) {} // eslint-disable-line no-unused-vars
602 // Destroy if no auto destroy and premature break.
612 for await (const chunk of r) { // eslint-disable-line no-unused-vars
630 for await (const chunk of r) {} // eslint-disable-line no-unused-vars
647 r.destroy = (err) => { argument
648 originalDestroy.call(r, err);
668 r.destroy = (err) => { argument
669 originalDestroy.call(r, err);
711 const err = new Error(); constant
712 err.code = 'ECONNRESET';
713 res.emit('error', err);
720 // eslint-disable-next-line no-unused-vars
722 } catch (err) {
723 _err = err;