decoder generation for optional sumtypes is wrong
skoppe opened this issue · 1 comments
skoppe commented
In the function WebGLRenderingContextBase
.texImage2D
the last parameter is an optional ArrayBufferView. Which is passed to JS in 2 arguments (a bool and the ArrayBufferView).
The JS body correctly calls spasm_decode_ArrayBufferView
, but the generated decoder is spasm_decode_optional_ArrayBufferView
, which treats it as an Optional!ArrayBufferView
.
skoppe commented
Fixed in upcoming 0.2.0