ladybird/Libraries/LibJS
Linus Groh 0974991d05 LibJS: Don't treat '?.' followed by decimal digit as QuestionMarkPeriod
From the spec: https://tc39.es/ecma262/#sec-punctuators

    OptionalChainingPunctuator ::
        ?. [lookahead ∉ DecimalDigit]

We were missing the lookahead and therefore incorrectly treating any
'?.' as TokenType::QuestionMarkPeriod.

Fixes #4409.
2020-12-14 22:25:46 +01:00
..
Heap LibJS: Use new format functions everywhere 2020-12-06 18:52:52 +01:00
Runtime LibWeb: Apply suggested fixes. 2020-12-09 21:05:06 +01:00
Tests LibJS: Don't treat '?.' followed by decimal digit as QuestionMarkPeriod 2020-12-14 22:25:46 +01:00
AST.cpp LibJS: Get rid of Argument and ArgumentVector 2020-12-08 18:28:18 +01:00
AST.h LibJS: Parse "with" statements :^) 2020-11-28 17:16:48 +01:00
CMakeLists.txt LibJS: Use new format functions everywhere 2020-12-06 18:52:52 +01:00
Console.cpp LibJS: Use regular stack for VM call frames instead of Vector storage 2020-11-07 13:58:28 +01:00
Console.h LibJS: Move Console from Interpreter to GlobalObject 2020-09-29 21:15:06 +02:00
Forward.h LibJS: Get rid of Argument and ArgumentVector 2020-12-08 18:28:18 +01:00
Interpreter.cpp LibJS: Get rid of Argument and ArgumentVector 2020-12-08 18:28:18 +01:00
Interpreter.h LibJS: Get rid of Argument and ArgumentVector 2020-12-08 18:28:18 +01:00
Lexer.cpp LibJS: Don't treat '?.' followed by decimal digit as QuestionMarkPeriod 2020-12-14 22:25:46 +01:00
Lexer.h LibJS: Include source location hint in Parser::print_errors() 2020-12-06 18:52:52 +01:00
MarkupGenerator.cpp LibJS: Handle multi-line source code in MarkupGenerator 2020-10-31 20:52:54 +01:00
MarkupGenerator.h Meta: Add a script check the presence of "#pragma once" in header files 2020-05-29 07:59:45 +02:00
Parser.cpp LibJS: Use new format functions everywhere 2020-12-06 18:52:52 +01:00
Parser.h LibJS: Include source location hint in Parser::print_errors() 2020-12-06 18:52:52 +01:00
Token.cpp LibJS: Use GenericLexer for Token::string_value() 2020-10-29 11:52:31 +01:00
Token.h LibJS: Add message string to Token 2020-10-26 21:38:34 +01:00