From 08da09ce2bcbe86432b17caf7d47dea6d12def21 Mon Sep 17 00:00:00 2001 From: Abel Stuker Date: Mon, 17 Nov 2025 01:11:30 +0100 Subject: [PATCH] feat: add i64 and f64 wasm value constructors --- src/sourcemap/Wasm.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/sourcemap/Wasm.ts b/src/sourcemap/Wasm.ts index 9ced851..54e185e 100644 --- a/src/sourcemap/Wasm.ts +++ b/src/sourcemap/Wasm.ts @@ -34,6 +34,14 @@ export namespace WASM { return {value: n, type: Type.f32}; } + export function f64(n: number): WASM.Value { + return {value: n, type: Type.f64}; + } + + export function i64(n: number): WASM.Value { + return {value: n, type: Type.i64}; + } + export interface Frame { type: number; fidx: string;