Skip to content

Conversation

@abelstuker
Copy link
Contributor

This PR introduces convenience functions for constructing i64 and f64 WASM values.
Before this change, using 64-bit Wasm values required rather verbose inline objects { type: Type.i64, value: 123 }, whereas 32-bit values could already be constructed with WASM.i32(value) and WASM.f32(value).
Adding WASM.i64(value) and WASM.f64(value) improves readability and consistency with the existing 32-bit value constructors.

@abelstuker abelstuker changed the title Add i64 and f64 wasm value constructors Add i64 and f64 Wasm value constructors Nov 17, 2025
@abelstuker abelstuker requested a review from tolauwae November 17, 2025 00:22
@tolauwae tolauwae merged commit 45360f1 into main Nov 17, 2025
6 checks passed
@tolauwae tolauwae deleted the feat/add-missing-value-constructors branch November 17, 2025 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants