rocicorp / repc

The canonical Replicache client, implemented in Rust.
Other
31 stars 7 forks source link

Throw an error instead of a string #355

Closed arv closed 3 years ago

arv commented 3 years ago

At the top level exit point from wasm throw an Error instead of a string.

Towards #352

arv commented 3 years ago

This does not yet unpack errors that originated from JS in the first place.

phritz commented 3 years ago

@arv will this address https://github.com/rocicorp/repc/issues/354, at least on the js side?

arv commented 3 years ago

It will throw errors so we do get the stack trace outside of wasm.

The goal of #352 was to return the original error if it originated in JS (for example if there was an IDB error)

arv commented 3 years ago

Argh,clippy. Will look tomorrow