]> git.kaiwu.me - njs.git/commit
Parser: remove the use_lhs parser flag
authorDmitry Volyntsev <xeioex@nginx.com>
Tue, 1 Sep 2026 01:32:50 +0000 (18:32 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Fri, 4 Sep 2026 20:56:37 +0000 (13:56 -0700)
commitcdfda468b1c05df3a4aea3dd6b894ee45142175f
tree0af9d9a30e609c9cb65a86830213776610a10f6c
parent6bf9c059e672480431638759755d03368ba1eb3a
Parser: remove the use_lhs parser flag

Previously, use_lhs told njs_parser_exponentiation_expression() to skip the
unary part and njs_parser_assignment_expression() to skip the arrow check, so
that an expression could resume from an already parsed left-hand side.

The fix is to remove it: its only writer went with the speculative "for"
initializer parse.
src/njs_parser.c
src/njs_parser.h