diff options
author | Anonymous <anon@mous.org> | 2022-02-15 22:34:59 -0800 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-02-16 11:18:41 +0000 |
commit | 602190f66f7d74bba019b42870d1fc93e5a26a51 (patch) | |
tree | 0f72949ec458943369f1cb63a9e2e143035d9533 /Userland/Libraries/LibJS/Runtime | |
parent | 9c78c1bf818b6ca85ddbcf71a9931a9f01b5f6f6 (diff) | |
download | serenity-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