diff options
author | Ben Wiederhake <BenWiederhake.GitHub@gmx.de> | 2020-07-25 19:44:12 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-28 19:10:10 +0200 |
commit | 801058e5140f31d093d8f3ac24a2597a7fa28287 (patch) | |
tree | 90a7057e65fa559c37f53a7868e5953a999f4a9c /Libraries/LibJS/AST.cpp | |
parent | fc425a218da0058d7ef750010e4d2eb0f3a6199d (diff) | |
download | serenity-801058e5140f31d093d8f3ac24a2597a7fa28287.zip |
LibJS: Soothe gcc about printf-%s on (non-)nullptr
Diffstat (limited to 'Libraries/LibJS/AST.cpp')
-rw-r--r-- | Libraries/LibJS/AST.cpp | 1 |
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); |