(stream, er, data)
| 25260 | }; |
| 25261 | |
| 25262 | function done(stream, er, data) { |
| 25263 | if (er) return stream.emit('error', er); |
| 25264 | |
| 25265 | if (data !== null && data !== undefined) stream.push(data); |
| 25266 | |
| 25267 | // if there's nothing in the write buffer, then that means |
| 25268 | // that nothing more will ever be provided |
| 25269 | var ws = stream._writableState; |
| 25270 | var ts = stream._transformState; |
| 25271 | |
| 25272 | if (ws.length) throw new Error('Calling transform done when ws.length != 0'); |
| 25273 | |
| 25274 | if (ts.transforming) throw new Error('Calling transform done when still transforming'); |
| 25275 | |
| 25276 | return stream.push(null); |
| 25277 | } |
| 25278 | },{"./_stream_duplex":140,"core-util-is":78,"inherits":81}],144:[function(require,module,exports){ |
| 25279 | (function (process){ |
| 25280 | // A bit simpler than readable streams. |
no outgoing calls
no test coverage detected