Lines Matching refs:writable
11 const writable = new stream.Writable(); constant
13 writable._write = (chunks, encoding, cb) => {
17 writable.on('finish', common.mustNotCall());
18 writable.on('prefinish', common.mustNotCall());
19 writable.on('error', common.mustCall((er) => {
23 writable.end('test');
27 const writable = new stream.Writable(); constant
29 writable._write = (chunks, encoding, cb) => {
33 writable.on('finish', common.mustNotCall());
34 writable.on('prefinish', common.mustNotCall());
35 writable.on('error', common.mustCall((er) => {
39 writable.end('test');
43 const writable = new stream.Writable(); constant
45 writable._write = (chunks, encoding, cb) => {
49 writable._writev = (chunks, cb) => {
53 writable.on('finish', common.mustNotCall());
54 writable.on('prefinish', common.mustNotCall());
55 writable.on('error', common.mustCall((er) => {
59 writable.cork();
60 writable.write('test');
63 writable.end('test');
68 const writable = new stream.Writable(); constant
70 writable._write = (chunks, encoding, cb) => {
74 writable._writev = (chunks, cb) => {
78 writable.on('finish', common.mustNotCall());
79 writable.on('prefinish', common.mustNotCall());
80 writable.on('error', common.mustCall((er) => {
84 writable.cork();
85 writable.write('test');
88 writable.end('test');