summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/AST.cpp
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2020-07-25 19:44:12 +0200
committerAndreas Kling <kling@serenityos.org>2020-07-28 19:10:10 +0200
commit801058e5140f31d093d8f3ac24a2597a7fa28287 (patch)
tree90a7057e65fa559c37f53a7868e5953a999f4a9c /Libraries/LibJS/AST.cpp
parentfc425a218da0058d7ef750010e4d2eb0f3a6199d (diff)
downloadserenity-801058e5140f31d093d8f3ac24a2597a7fa28287.zip
LibJS: Soothe gcc about printf-%s on (non-)nullptr
Diffstat (limited to 'Libraries/LibJS/AST.cpp')
-rw-r--r--Libraries/LibJS/AST.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibJS/AST.cpp b/Libraries/LibJS/AST.cpp
index 942542bd0a..1d440fcf17 100644
--- a/Libraries/LibJS/AST.cpp
+++ b/Libraries/LibJS/AST.cpp
@@ -930,6 +930,7 @@ void ClassDeclaration::dump(int indent) const
void ClassExpression::dump(int indent) const
{
print_indent(indent);
+ ASSERT(m_name.characters());
printf("ClassExpression: \"%s\"\n", m_name.characters());
print_indent(indent);