opencode/packages/codemode-rust/conformance/frames
Sebastian Herrlinger 4faf34382c feat(codemode): call a crossing's toJSON from a native frame
The walk that crosses tool arguments, search input and the program's result to the host now calls each toJSON from a native frame it pushes, as bytecode calls it, so a toJSON can park for search(...), suspend and be saved in a snapshot. A search's walk runs in its frame and parks it with the search's frames when it awaits. The fast path makes a Date's or URL's JSON itself instead of calling the prototype's toJSON, as the reference does.
2026-11-18 18:56:13 +01:00
..
arrays.ts refactor(codemode): collect Uint8Array sources the VM iterates itself without a frame 2026-11-18 18:56:12 +01:00
callbacks.ts feat(codemode): call a crossing's toJSON from a native frame 2026-11-18 18:56:13 +01:00
collections.ts feat(codemode): run collection built-ins that call the program in native frames 2026-11-18 18:56:13 +01:00
core.ts feat(codemode): park a search inside an async generator's frame 2026-11-18 18:56:13 +01:00
iterators.ts feat(codemode): run iterator helpers' next and return in native frames 2026-11-18 18:56:12 +01:00