1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:48:12 +00:00
serenity/Libraries/LibJS
Linus Groh d1d9545875 LibJS: Add missing reserved words to Token::is_identifier_name()
This is being used in match_identifier_name(), for example when parsing
property keys - the list was incomplete, likely as some token types were
added later, leading to some unexpected syntax errors:

> var e = {};
undefined
> e.extends = "a";
e.extends = "a";
  ^
Uncaught exception: [SyntaxError]: Unexpected token Extends. Expected IdentifierName (line: 1, column: 3)

Fixes #3128.
2020-08-14 10:58:51 +02:00
..
Heap LibJS: Simplify Cell::initialize() 2020-07-23 17:31:08 +02:00
Runtime Unicode: Try s/codepoint/code_point/g again 2020-08-05 22:33:42 +02:00
Tests LibJS: Add tests for bitwise & and ^ 2020-07-23 13:06:49 +02:00
AST.cpp LibJS: Soothe gcc about printf-%s on (non-)nullptr 2020-07-28 19:10:10 +02:00
AST.h LibJS: Initial class implementation; allow super expressions in object 2020-06-29 17:54:54 +02:00
CMakeLists.txt LibJS: Add StringIterator 2020-07-13 15:07:29 +02:00
Console.cpp LibJS: Move Interpreter::get_trace() to ConsoleClient 2020-06-02 15:22:34 +02:00
Console.h LibJS: Move Interpreter::get_trace() to ConsoleClient 2020-06-02 15:22:34 +02:00
Forward.h LibWeb: Make btoa() and atob() correctly handle values between 128 and 255 2020-07-22 19:22:00 +02:00
Interpreter.cpp LibJS: Assert when exception is not cleared before Interpreter::run() 2020-08-11 21:08:30 +02:00
Interpreter.h LibJS: Use macros to enumerate well-known symbols 2020-07-11 18:54:13 +02:00
Lexer.cpp LibJS: Move regex logic to main Lexer if statement 2020-06-08 09:18:27 +02:00
Lexer.h LibJS: Lex and parse regex literals, add RegExp objects 2020-06-07 19:06:55 +02:00
MarkupGenerator.cpp Browser: Escape JS source operators for HTML display in console 2020-07-23 23:01:16 +02: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 Unicode: Try s/codepoint/code_point/g again 2020-08-05 22:33:42 +02:00
Parser.h LibJS: Initial class implementation; allow super expressions in object 2020-06-29 17:54:54 +02:00
Token.cpp LibJS: Add missing reserved words to Token::is_identifier_name() 2020-08-14 10:58:51 +02:00
Token.h LibJS: Add BigInt 2020-06-07 19:29:40 +02:00