Implement `{ key: value }` object literals across the full pipeline:
tokenizer (Colon token), parser (ObjectLit AST node), VM value layer
(JsObject with Rc<RefCell<HashMap>> for JS reference semantics), and
interpreter (evaluation, dot-access reads, property assignment).
Promotes js262-object-literal from known_fail to pass and adds 3 new
JS262 conformance tests. Includes 65+ unit tests covering parsing edge
cases, identity equality, aliasing, type coercion, and error paths.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
4 lines
46 B
JavaScript
4 lines
46 B
JavaScript
var o = { x: 1 };
|
|
o.x = 42;
|
|
console.log(o.x);
|