Ver código fonte

LibJS: Print the name of AST nodes that are missing generate_bytecode()

This way you know which one it is right away. :^)
Andreas Kling 4 anos atrás
pai
commit
99ffcc28c2
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      Userland/Libraries/LibJS/Bytecode/ASTCodegen.cpp

+ 1 - 1
Userland/Libraries/LibJS/Bytecode/ASTCodegen.cpp

@@ -15,7 +15,7 @@ namespace JS {
 
 
 void ASTNode::generate_bytecode(Bytecode::Generator&) const
 void ASTNode::generate_bytecode(Bytecode::Generator&) const
 {
 {
-    dbgln("Missing generate_bytecode()");
+    dbgln("Missing generate_bytecode() in {}", class_name());
     TODO();
     TODO();
 }
 }