canonicalize NaNs #20
Labels
enhancement
New feature or request
go
wRPC Go support
help wanted
Extra attention is needed
rust
wRPC Rust support
Milestone
floating point number NaNs have exactly one canonical representation in component-model specification, which we should match to be compliant.
Basically this is about adapting https://github.com/WebAssembly/component-model/blob/c3ef2a99f7c70b8189a889314569c0ce38c0433b/design/mvp/canonical-abi/definitions.py#L415-L441 in float encoding (although I do think we can be more lenient of decoding side and accept any NaN)
Refs WebAssembly/component-model#336 (comment)
The text was updated successfully, but these errors were encountered: