js-on-sx: ASI rejects postfix ++/-- after LineTerminator
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 22s

This commit is contained in:
2026-05-10 14:15:56 +00:00
parent 7f5b77415f
commit dfb660073e
2 changed files with 3 additions and 1 deletions

View File

@@ -709,7 +709,7 @@
st
(list (quote js-optchain-member) left (get t :value))))
(error "expected ident, [ or ( after ?.")))))))
((or (jp-at? st "op" "++") (jp-at? st "op" "--"))
((and (or (jp-at? st "op" "++") (jp-at? st "op" "--")) (not (jp-token-nl? st)))
(let
((op (get (jp-peek st) :value)))
(jp-advance! st)