소스 검색

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 년 전
부모
커밋
99ffcc28c2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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
 {
-    dbgln("Missing generate_bytecode()");
+    dbgln("Missing generate_bytecode() in {}", class_name());
     TODO();
 }