react icon indicating copy to clipboard operation
react copied to clipboard

fix(compiler): support UpdateExpression on captured variables

Open tennisleng opened this issue 3 weeks ago • 0 comments

This PR implements support for UpdateExpression (e.g. x++) on variables captured by closures (context identifiers). Previously, this would throw a Todo error. The implementation emulates the behavior of member expression updates by explicitly loading the current value, calculating the new value with a BinaryExpression, and storing it back using StoreContext.

tennisleng avatar Dec 05 '25 21:12 tennisleng