瀏覽代碼

LibJS: Include <typeinfo> in AST.cpp

Without this, the oss-fuzz build says:

../Userland/Libraries/LibJS/AST.cpp:58:34: error: member access into incomplete type 'const std::type_info'
    return demangle(typeid(*this).name()).substring(4);
                                 ^
Nico Weber 4 年之前
父節點
當前提交
8ccd8b4a6f
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Userland/Libraries/LibJS/AST.cpp

+ 1 - 0
Userland/Libraries/LibJS/AST.cpp

@@ -49,6 +49,7 @@
 #include <LibJS/Runtime/Shape.h>
 #include <LibJS/Runtime/StringObject.h>
 #include <LibJS/Runtime/WithScope.h>
+#include <typeinfo>
 
 namespace JS {