jow- / ucode

JavaScript-like language with optional templating
ISC License
90 stars 30 forks source link

compiler: fix `??=`, `||=` and `&&=` logical assignment sementics #123

Closed jow- closed 1 year ago

jow- commented 1 year ago

When compiling logical assignment expressions, ensure that the rhs of the assignment is not evaluated when the assignment condition is unfulfilled.

Signed-off-by: Jo-Philipp Wich jo@mein.io