(chunk, encoding, callback)
| 32 | }; |
| 33 | } |
| 34 | _transform(chunk, encoding, callback) { |
| 35 | if (this.state.stop === true) { |
| 36 | return; |
| 37 | } |
| 38 | const err = this.api.__transform(chunk, this.push.bind(this)); |
| 39 | if (err !== undefined) { |
| 40 | this.state.stop = true; |
| 41 | } |
| 42 | callback(err); |
| 43 | } |
| 44 | _flush(callback) { |
| 45 | if (this.state.stop === true) { |
| 46 | // Note, Node.js 12 call flush even after an error, we must prevent |
nothing calls this directly
no test coverage detected