mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-29 11:42:17 +00:00
for...of, destructuring, rest elements and spread over an iterator the VM does not step itself (one whose [Symbol.iterator], next or return is the program's, a helper's or the host's) now open, step and close it from a native frame: the instruction pushes the frame, which makes the call and hands the result back as the instruction would, a finished for...of jumping to its exit. A step that fails forgets the iterator, as before. native_resume with return or throw pushes a handler first, so what the generator throws comes back to the frame instead of unwinding past it while its step runs, and a for-of frame's close throws what closing threw. Recorded: search parking in each, a generator whose finally throws while closed, the iterator errors, and a suspension inside a custom next. |
||
|---|---|---|
| .. | ||
| bench | ||
| conformance | ||
| crates/psychoscript | ||
| test262 | ||
| .gitignore | ||
| AGENTS.md | ||
| Cargo.lock | ||
| Cargo.toml | ||
| rust-toolchain.toml | ||