Files
Ivan FBandClaude Opus 5 d87b7a33de fix(wasm): demos must ignore RET_STALE_WARN too
Same defect the ld-edge.js wrapper had: nim-ffi 0.3.0's RET_STALE_WARN (3) is a
non-terminal progress ping, and treating it as terminal frees the function-table
slot before the real reply arrives — which then traps the module with
"RuntimeError: null function" inside ffi_poll, killing the node outright.

Only slow requests warn, so the demos happened not to hit it. Guarding anyway:
the demo is the reference a host copies, and shipping the trap in the example is
how it spreads.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012qDYE5r2t2dMry5XpWWySu
2026-08-08 15:17:12 +02:00
..