]> git.kaiwu.me - njs.git/commit
Added support for ||= and &&= logical assignment operators.
authorDmitry Volyntsev <xeioex@nginx.com>
Wed, 11 Feb 2026 15:13:06 +0000 (07:13 -0800)
committerDmitry Volyntsev <xeioexception@gmail.com>
Mon, 2 Mar 2026 21:01:04 +0000 (13:01 -0800)
commit1a64ba684d898a2395a7bd01b5ebd215a189acec
treeb52c7c157485ff20cd1172611696510b08ef7675
parente4f5db00441bef73f8d7d19e474e5d9782e68b68
Added support for ||= and &&= logical assignment operators.

Unlike regular compound assignments (+=, -=), these operators
short-circuit: the RHS is not evaluated and no assignment occurs
if the logical condition is already satisfied.
src/njs_generator.c
src/njs_lexer.c
src/njs_lexer.h
src/njs_parser.c
src/test/njs_unit_test.c