Lines Matching refs:writable
9 const writable = new stream.Writable(); constant
11 writable._write = (chunk, encoding, cb) => {
15 writable.on('error', common.mustCall((err) => {
18 writable.write('asd');
19 writable.end(common.mustCall((err) => {
22 writable.end(common.mustCall((err) => {
29 const writable = new stream.Writable(); constant
31 writable._write = (chunk, encoding, cb) => {
36 writable.end('asd', common.mustCall((err) => {
41 writable.on('error', common.mustCall((err) => {
44 writable.on('finish', common.mustCall(() => {
46 writable.emit('error', new Error('kaboom'));