summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Token.cpp
diff options
context:
space:
mode:
authorStephan Unverwerth <s.unverwerth@gmx.de>2020-03-14 11:45:25 +0100
committerAndreas Kling <kling@serenityos.org>2020-03-14 12:13:53 +0100
commitc0e623421972606adf41616d7be82e42d820658c (patch)
tree28368c7ade04d19b1643ce6f0690a9b093d31760 /Libraries/LibJS/Token.cpp
parentd439013903a1e9ecfc8c8716bd88dbceb8314a6a (diff)
downloadserenity-c0e623421972606adf41616d7be82e42d820658c.zip
LibJS: Lex single quote strings, escaped chars and unterminated strings
Diffstat (limited to 'Libraries/LibJS/Token.cpp')
-rw-r--r--Libraries/LibJS/Token.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Libraries/LibJS/Token.cpp b/Libraries/LibJS/Token.cpp
index 2698aaffdc..ff379d37db 100644
--- a/Libraries/LibJS/Token.cpp
+++ b/Libraries/LibJS/Token.cpp
@@ -186,6 +186,8 @@ const char* Token::name(TokenType type)
return "UnsignedShiftRight";
case TokenType::UnsignedShiftRightEquals:
return "UnsignedShiftRightEquals";
+ case TokenType::UnterminatedStringLiteral:
+ return "UnterminatedStringLiteral";
case TokenType::Var:
return "Var";
case TokenType::Void: