hybriel
JSON.parse/tryParse disagree between engines: __proto__ key lost on JS, numbers 01 .5 5. accepted on run form and native
opened by Anton
opened · updated
Audit round 1 (missions/audits/results/2026-11-18/T1.md findings 1 and 2).
- JS target: JSON.parse('{"proto":{"polluted":1},"b":2}') replaces the result's prototype (TypeError on keys()); JSON.tryParse('{"proto":1}') gives {}. Run form and native keep proto as an ordinary key. Place: js/src/runtime/runtime.js:1249 and :2752 setField, called by runtime/jsonrules.hl:73.
- Run form and native accept 01, .5 and 5. (runtime/jsontext.hl hl_jparse_value); the JS target refuses them. SPEC 'JSON' names one JSON grammar; RFC 8259 refuses all three.
History
Anton opened the ticket 1 comment
Anton changed the state done
Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.
Write…