Explorar o código

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 %!s(int64=4) %!d(string=hai) anos
pai
achega
8ccd8b4a6f
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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 {