MCPcopy Create free account
hub / github.com/1j01/98 / tryToString

Function tryToString

lib/browserfs.js:12919–12926  ·  view source on GitHub ↗

* Try to convert the given buffer into a string, and pass it to the callback. * Optimization that removes the needed try/catch into a helper function, as * this is an uncommon case. * @hidden

(buff, encoding, cb)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

browserfs.jsFile · 0.85

Calls 2

cbFunction · 0.50
toStringMethod · 0.45

Tested by

no test coverage detected