summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Token.cpp
diff options
context:
space:
mode:
author0xtechnobabble <0xtechnobabble@protonmail.com>2020-03-15 23:32:34 +0200
committerAndreas Kling <kling@serenityos.org>2020-03-16 13:42:13 +0100
commitcfd710eb31c47754ccd676bf78a4cdec778e741a (patch)
tree0f5cad64564f7c05b16930a43bae7d814b0e7f48 /Libraries/LibJS/Token.cpp
parent7aad10d9849f9133f987a6130b330220896ccc58 (diff)
downloadserenity-cfd710eb31c47754ccd676bf78a4cdec778e741a.zip
LibJS: Implement null and undefined literals
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 da5f75c839..a578122d4d 100644
--- a/Libraries/LibJS/Token.cpp
+++ b/Libraries/LibJS/Token.cpp
@@ -183,6 +183,8 @@ const char* Token::name(TokenType type)
return "Try";
case TokenType::Typeof:
return "Typeof";
+ case TokenType::UndefinedLiteral:
+ return "UndefinedLiteral";
case TokenType::UnsignedShiftRight:
return "UnsignedShiftRight";
case TokenType::UnsignedShiftRightEquals: