Something went wrong. Try again.
we (web engine): Experimental web browser project to understand the limits of Claude
Something went wrong. Try again.
Implement JS closures, const immutability, and method-call this binding master
Add upvalue-based closure system using GC-allocated cells: - New bytecode ops: NewCell, CellLoad, CellStore, LoadUpvalue, StoreUpvalue - UpvalueDef metadata on Function for closure capture resolution - HeapObject::Cell variant for mutable captured variable storage - Free variable analysis with transitive capture support - Captured parameters are boxed into cells at function entry - const declarations enforce immutability at compile time - Method calls (obj.method()) set this before invocation Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author Pierre Le Fevre Co-author Claude Opus 4.6 (1M context) Committer Tangled Date (Mar 22, 2026, 11:50 AM UTC) Commit ec5ec682 ec5ec682a916a7fb5f8408869bea4aac0b83775e Parent 3235f7f1 3235f7f1407fdef20f6b2549053ed4cd3aa58446