as @jvilk pointed out in #1, jvilk/BrowserFS provides ApiErrors to callbacks, which have a pretty toString method. We lose this when we send these errors from the kernel to the worker (due to structured cloning "The prototype chain does not get walked and duplicated").
We should provide full ApiErrors to users of the fs module in browser-node. BrowserFS's WorkerFS does this - we should probably just use that same mechanism
as @jvilk pointed out in #1, jvilk/BrowserFS provides
ApiError
s to callbacks, which have a prettytoString
method. We lose this when we send these errors from the kernel to the worker (due to structured cloning "The prototype chain does not get walked and duplicated").We should provide full
ApiError
s to users of thefs
module inbrowser-node
. BrowserFS's WorkerFS does this - we should probably just use that same mechanism