(stream, er)
| 3959 | |
| 3960 | |
| 3961 | function done(stream, er) { |
| 3962 | if (er) |
| 3963 | return stream.emit('error', er); |
| 3964 | |
| 3965 | // if there's nothing in the write buffer, then that means |
| 3966 | // that nothing more will ever be provided |
| 3967 | var ws = stream._writableState; |
| 3968 | var rs = stream._readableState; |
| 3969 | var ts = stream._transformState; |
| 3970 | |
| 3971 | if (ws.length) |
| 3972 | throw new Error('calling transform done when ws.length != 0'); |
| 3973 | |
| 3974 | if (ts.transforming) |
| 3975 | throw new Error('calling transform done when still transforming'); |
| 3976 | |
| 3977 | return stream.push(null); |
| 3978 | } |
| 3979 | |
| 3980 | },{"./_stream_duplex":18,"core-util-is":23,"inherits":10}],22:[function(require,module,exports){ |
| 3981 | (function (process){ |
no test coverage detected