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
Contrib/Test262
Heap
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
CMakeLists.txt
Console.cpp
Console.h
CyclicModule.cpp
CyclicModule.h
Forward.h LibJS: Add support for Float16Array 2024-11-10 14:48:20 -07:00
Lexer.cpp
Lexer.h
MarkupGenerator.cpp
MarkupGenerator.h
Module.cpp
Module.h
ModuleLoading.h
Parser.cpp LibJS: Allow division after IdentifierNames in optional chain 2024-11-11 20:19:26 +01:00
Parser.h
ParserError.cpp
ParserError.h
Position.h
Print.cpp
Print.h
Script.cpp
Script.h
SourceCode.cpp
SourceCode.h
SourceRange.h
SourceTextModule.cpp
SourceTextModule.h
SyntaxHighlighter.cpp
SyntaxHighlighter.h
SyntheticModule.cpp
SyntheticModule.h
Token.cpp
Token.h