Files
sausage/spikes/s6-esbuild/clocks.wat
T
surma 9e9cde5241 spikes: six v3 spikes (V8 harness, WASI shell, git, builder, http hook, esbuild)
Throwaway prototypes for Sausage v3. Plan and decisions:
~/research/sausage-v3/PLAN.md. Results and evidence: the spike READMEs.
2026-11-06 14:03:20 +00:00

11 lines
400 B
WebAssembly Text Format

;; Test the Go runtime's exact clock IDs and precision without a Go allocator.
(module
(import "wasi_snapshot_preview1" "clock_time_get"
(func $clock (param i32 i64 i32) (result i32)))
(memory (export "memory") 1)
(func (export "_start")
i32.const 0 i64.const 0 i32.const 0 call $clock
if unreachable end
i32.const 1 i64.const 0 i32.const 8 call $clock
if unreachable end))