summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime
diff options
context:
space:
mode:
authorAnonymous <anon@mous.org>2022-02-15 22:34:59 -0800
committerLinus Groh <mail@linusgroh.de>2022-02-16 11:18:41 +0000
commit602190f66f7d74bba019b42870d1fc93e5a26a51 (patch)
tree0f72949ec458943369f1cb63a9e2e143035d9533 /Userland/Libraries/LibJS/Runtime
parent9c78c1bf818b6ca85ddbcf71a9931a9f01b5f6f6 (diff)
downloadserenity-602190f66f7d74bba019b42870d1fc93e5a26a51.zip
LibJS: Fix mixing of logical and coalescing operators
The same expression is not allowed to contain both the logical && and || operators, and the coalescing ?? operator. This patch changes how "forbidden" tokens are handled, using a finite set instead of an Vector. This supports much more efficient merging of the forbidden tokens when propagating forward, and allowing the return of forbidden tokens to parent contexts.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime')
0 files changed, 0 insertions, 0 deletions