1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:18:11 +00:00

LibJS: Parse "this" as ThisExpression

This commit is contained in:
Stephan Unverwerth 2020-04-13 00:42:14 +02:00 committed by Andreas Kling
parent 110ca6b0b6
commit f8f65053bd
6 changed files with 37 additions and 17 deletions

View file

@ -66,6 +66,7 @@ Lexer::Lexer(StringView source)
s_keywords.set("null", TokenType::NullLiteral);
s_keywords.set("return", TokenType::Return);
s_keywords.set("switch", TokenType::Switch);
s_keywords.set("this", TokenType::This);
s_keywords.set("throw", TokenType::Throw);
s_keywords.set("true", TokenType::BoolLiteral);
s_keywords.set("try", TokenType::Try);