Repository navigation
Commit 9375cdb
committed
docs(ffi): record the Wasm host imports json v0.4 adds
A Wasm module that imports json's externs (`use json::*`) now imports
hpm_json_object_len and hpm_json_object_key as well: 13 hpm_json_*
imports instead of 11, under the `json` module. A host supplying only
the v0.3 set fails with a LinkError at instantiation (checked with
Bun's WebAssembly on this commit). The spec now says so, and how a host
can stub the two until hpm-json-rsr exports them.
Answers the outside-diff finding on stdlib/json.affine in the CodeRabbit
review of #798; the externs moved to this PR.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDiosfvobXq67wbduuK1 parent 9464efe commit 9375cdb
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
216 | 229 | | |
217 | 230 | | |
218 | 231 | | |
| |||
0 commit comments