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>
3 lines
55 B
JavaScript
3 lines
55 B
JavaScript
var o = { a: { b: { c: 99 } } };
|
|
console.log(o.a.b.c);
|