mirror of
https://github.com/lexmount/moli.git
synced 2026-11-21 08:02:59 +00:00
Register V8's API-wrapper error classifier for Window and worker isolates, using the existing native DOMException interface brand and inheritance. Keep Error.isError itself unchanged, including ordinary Error and Proxy classification and author getter avoidance. Allocate native exception data/failures through cached interface instance templates. Preserve sparse facade/host contexts with a cached API wrapper allocator and their existing declaration/prototype policy. Keep the data versus failure-stack boundary, native constructor path and wire format. Cover script/subclass/native/cloned exceptions, genuine and forged receivers, worker kinds, bare and retired cold contexts, and cross-realm behavior. Validation: cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast (23219 passed, 17 existing skips, 32 threads, no automatic retries).