Przeglądaj źródła

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 lat temu
rodzic
commit
8ccd8b4a6f
1 zmienionych plików z 1 dodań i 0 usunięć
  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/Shape.h>
 #include <LibJS/Runtime/StringObject.h>
 #include <LibJS/Runtime/StringObject.h>
 #include <LibJS/Runtime/WithScope.h>
 #include <LibJS/Runtime/WithScope.h>
+#include <typeinfo>
 
 
 namespace JS {
 namespace JS {