Files
rust_browser/tests/external/js262/fixtures/object-property-assign.js
Zachary D. Rowitsch b8319b60c3 Add JavaScript object literal support with reference semantics
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>
2026-02-21 10:31:33 -05:00

4 lines
46 B
JavaScript

var o = { x: 1 };
o.x = 42;
console.log(o.x);