You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[TS] Bind lexical this when calling stored arrow functions #440
The native frontend captures lexical this in arrow closure environments, and USVM uses that captured value when a stored arrow is called through another object. Ordinary stored functions retain their dynamic receiver. Implementation: usvm #470, usvm #432.
Validation: The issue's lexical-this example returned 12 in symbolic execution and Node replay; all 3 StoredFunctionCall regressions passed. The temporary replay fixture desugared the constructor parameter property without changing its semantics.
Original report and acceptance context, retained for traceability
Problem
A stored arrow function is called with the receiver of the property access instead of the this captured where the arrow was created. This is independent of the object-array symbolic-input problem that remains in #419.
lexicalThis() returns 12 in TypeScript/Node.js. The related StoredFunctionCall test reported in #419 on the #418 head returned 101 in USVM, using the target receiver instead of the source receiver. This standalone snippet has not yet been replayed through USVM.
Activity