bytecodealliance / ComponentizeJS

JS -> WebAssembly Component
Apache License 2.0
242 stars 32 forks source link

variant errors on top-level errors mask real error #19

Open guybedford opened 1 year ago

guybedford commented 1 year ago

When using say a restricted error variant, throwing an unsupported error will be masked by the "invalid variant" error in the bindings.

In componentize bindings, we should specially handle invalid error variants at the top-level to be able to provide better debugging output.