ladybird/Userland/Libraries/LibJS
Simon Wanner a2efecac03 LibJS: Parse slashes after reserved identifiers correctly
Previously we were unable to parse code like `yield/2` because `/2`
was parsed as a regex. At the same time `for (a in / b/)` was parsed
as a division.

This is solved by defaulting to division in the lexer, but calling
`force_slash_as_regex()` from the parser whenever an IdentifierName
is parsed as a ReservedWord.
2023-06-10 07:20:33 +02:00
..
Bytecode LibJS/Bytecode: Make for..in iterate property names as string 2023-05-26 17:52:51 +02:00
Contrib/Test262 Everywhere: Use MonotonicTime instead of Duration 2023-05-24 23:18:07 +02:00
Heap AK: Rename Time to Duration 2023-05-24 23:18:07 +02:00
Runtime LibJS: Remove unused DeprecatedFile include 2023-06-07 12:55:00 +02:00
Tests LibJS: Parse slashes after reserved identifiers correctly 2023-06-10 07:20:33 +02:00
AST.cpp LibJS: Store PrivateElement values in Handle<Value> 2023-06-02 10:33:12 +02:00
AST.h LibJS: Make Error stack traces lazier 2023-05-28 10:03:11 +02:00
CMakeLists.txt
Console.cpp
Console.h
CyclicModule.cpp LibJS+LibWeb: Add missing visit calls in visit_edges implementations 2023-04-30 06:04:33 +02:00
CyclicModule.h
Forward.h
Interpreter.cpp
Interpreter.h
Lexer.cpp LibJS: Parse slashes after reserved identifiers correctly 2023-06-10 07:20:33 +02:00
Lexer.h
MarkupGenerator.cpp LibJS: Make Error stack traces lazier 2023-05-28 10:03:11 +02:00
MarkupGenerator.h
Module.cpp
Module.h
Parser.cpp LibJS: Parse slashes after reserved identifiers correctly 2023-06-10 07:20:33 +02:00
Parser.h LibJS: Parse slashes after reserved identifiers correctly 2023-06-10 07:20:33 +02:00
ParserError.cpp
ParserError.h
Print.cpp AK: Rename Stream::format() to Stream::write_formatted() 2023-04-25 07:30:16 +01:00
Print.h
SafeFunction.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