MCPcopy
hub / github.com/PokemonGoF/PokemonGo-Bot / done

Function done

map-chat/javascript/browserMqtt.js:3961–3978  ·  view source on GitHub ↗
(stream, er)

Source from the content-addressed store, hash-verified

3959
3960
3961function 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){

Callers 4

processFunction · 0.85
browserMqtt.jsFile · 0.85
TransformFunction · 0.85
socketEndFunction · 0.85

Calls 1

emitMethod · 0.80

Tested by

no test coverage detected