opencode/packages/codemode-rust
kommander 1b65246dfe fix(codemode): let a function's name and length be deleted, and name bound functions
A function's own name and length are configurable in the reference:
deleting one leaves the inherited Function.prototype value ("" and 0), and
assigning still fails as read-only. Two object flags record the deletion,
and reads, 'in' and hasOwnProperty honour them; a frozen or sealed
function still refuses. bind now gives the bound function its own
'bound <name>' and the target's length less the bound arguments.

delete's errors read 'Cannot delete property 'k'.' everywhere, as in the
reference, for arrays and Uint8Array too. Touches object.rs (flags) and
ops.rs (get, has, has_own, delete).

25 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): let a function's name and length be deleted, and name bound functions 2026-11-18 18:56:10 +01:00
crates/psychoscript fix(codemode): let a function's name and length be deleted, and name bound functions 2026-11-18 18:56:10 +01:00
test262 fix(codemode): let a function's name and length be deleted, and name bound functions 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