1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-10-14 11:32:19 +00:00
serenity/Userland/Libraries/LibJS/Tests/syntax
Anonymous 602190f66f 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.
2022-02-16 11:18:41 +00:00
..
async-await.js
async-generators.js
coalesce-logic-expression-mixing.js
destructuring-assignment.js
dynamic-import-usage.js
for-loop-invalid-in.js
generators.js
if-statement-empty-completion.js
numeric-separator.js
optional-chaining.js
slash-after-block.js
switch-as-statement.js