ladybird/Libraries/LibJS
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
..
Bytecode Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Contrib/Test262 Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Heap Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Runtime LibJS: Add support for Float16Array 2024-11-10 14:48:20 -07:00
Tests LibJS: Allow division after IdentifierNames in optional chain 2024-11-11 20:19:26 +01:00
AST.cpp LibJS: Don't leak class field initializers 2024-11-10 19:12:59 +01:00
AST.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
CMakeLists.txt Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Console.cpp Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Console.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
CyclicModule.cpp Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
CyclicModule.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Forward.h LibJS: Add support for Float16Array 2024-11-10 14:48:20 -07:00
Lexer.cpp Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Lexer.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
MarkupGenerator.cpp Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
MarkupGenerator.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Module.cpp Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Module.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
ModuleLoading.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Parser.cpp LibJS: Allow division after IdentifierNames in optional chain 2024-11-11 20:19:26 +01:00
Parser.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
ParserError.cpp Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
ParserError.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Position.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Print.cpp Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Print.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Script.cpp Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Script.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
SourceCode.cpp Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
SourceCode.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
SourceRange.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
SourceTextModule.cpp Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
SourceTextModule.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
SyntaxHighlighter.cpp Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
SyntaxHighlighter.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
SyntheticModule.cpp Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
SyntheticModule.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Token.cpp Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Token.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00