opencode/packages/codemode-rust
kommander f304df0a4f fix(codemode): reject Promise combinators whose input cannot be iterated
Promise.all, allSettled, any and race threw synchronously when their
argument was not iterable or iterating it failed; like the reference they
now return a promise rejected with that error, and word the non-iterable
case as the reference does ('Promise.all expects a synchronous iterable,
received a number.').

GetIterator now uses the reference's messages for a Symbol.iterator that is
not a function or returns a non-object, in every place that iterates.
Touches ops.rs (get_iterator, get_async_iterator).

70 test262 files leave rust-skipped.txt.
2026-11-18 18:56:10 +01:00
..
bench perf(codemode): compile tool schemas once and keep host calls off the copy path 2026-11-18 18:54:15 +01:00
conformance fix(codemode): reject Promise combinators whose input cannot be iterated 2026-11-18 18:56:10 +01:00
crates/psychoscript fix(codemode): reject Promise combinators whose input cannot be iterated 2026-11-18 18:56:10 +01:00
test262 fix(codemode): reject Promise combinators whose input cannot be iterated 2026-11-18 18:56:10 +01:00
.gitignore feat(codemode): add embeddable Rust port 2026-11-18 18:53:56 +01:00
AGENTS.md chore(codemode): check Rust conformance in round-trip mode in CI 2026-11-18 18:56:10 +01:00
Cargo.lock feat(codemode): add URL, URLSearchParams, Headers, crypto and structuredClone 2026-11-18 18:56:09 +01:00
Cargo.toml test(codemode): add a test262 parity runner for the Rust port 2026-11-18 18:53:57 +01:00
rust-toolchain.toml chore(codemode): pin the Rust toolchain and prepare compare.sh for CI 2026-11-18 18:53:57 +01:00