From: Fabrice Bellard Date: Sat, 21 Nov 2026 11:38:21 +0000 (+0100) Subject: fixed parsing X-Git-Url: https://git.kaiwu.me/http/ngx_http_proxy_module.html?a=commitdiff_plain;h=8cf856b70d75a98742773a402a642181729bd824;p=quickjs.git fixed parsing --- diff --git a/quickjs.c b/quickjs.c index 0baef2a..03d866b 100644 --- a/quickjs.c +++ b/quickjs.c @@ -28423,9 +28423,7 @@ static __exception int js_parse_expr_binary(JSParseState *s, int level, atom = JS_DupAtom(s->ctx, s->token.u.ident.atom); if (next_token(s)) goto fail_private_in; - if (s->token.val != TOK_IN) - goto fail_private_in; - if (next_token(s)) + if (js_parse_expect(s, TOK_IN)) goto fail_private_in; if (js_parse_expr_binary(s, level - 1, parse_flags)) { fail_private_in: