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
async-generators.js
coalesce-logic-expression-mixing.js
destructuring-assignment.js
dynamic-import-usage.js
for-loop-invalid-in.js
function-hoisting.js
functions-in-tree-order-non-strict.js
functions-in-tree-order-strict.js
generators.js
if-statement-empty-completion.js
new-with-optional-chaining.js
numeric-separator.js
optional-chaining.js
slash-after-block.js
switch-as-statement.js
syntax-error-unary-expression-before-exponentiation.js