ladybird/Libraries/LibJS/Tests/syntax
Luke Wilde bd4c29322c LibJS: Allow division after IdentifierNames in optional chain
The following syntax is valid:
```js
e?.example / 1.2
```

Previously, the `/` would be treated as a unterminated regex literal,
because it was calling the regular `consume` instead of
`consume_and_allow_division`.

This is what is done when parsing IdentifierNames in
parse_secondary_expression when a period is encountered.

Allows us to parse clients-main-[hash].js on https://ubereats.com/
2024-11-11 20:19:26 +01:00
..
async-await.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
async-generators.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
coalesce-logic-expression-mixing.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
destructuring-assignment.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
dynamic-import-usage.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
for-loop-invalid-in.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
function-hoisting.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
functions-in-tree-order-non-strict.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
functions-in-tree-order-strict.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
generators.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
if-statement-empty-completion.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
new-with-optional-chaining.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
numeric-separator.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
optional-chaining.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
slash-after-block.js LibJS: Allow division after IdentifierNames in optional chain 2024-11-11 20:19:26 +01:00
switch-as-statement.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
syntax-error-unary-expression-before-exponentiation.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00