bytecodealliance / ComponentizeJS

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

Fix: Floats Handling #64

Closed guybedford closed 1 year ago

guybedford commented 1 year ago

Fixes https://github.com/bytecodealliance/componentize-js/issues/63.

Spidermonkey stores integer literals as integers, which we need to carefully detect when doing value parsing. This updates the float handling to detect the integer case properly and branch on the float conversion appropriately.

This affects both passed parameters and return values.