浏览代码

LibWeb: Add LibJS includes to generated IDL constructor files

These will be needed by any constructor having a BufferSource parameter,
such as WebAssembly.Module.
Timothy Flynn 2 年之前
父节点
当前提交
49e6cb7c3d
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp

+ 3 - 1
Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp

@@ -2859,9 +2859,11 @@ void generate_constructor_implementation(IDL::Interface const& interface, String
 
 
     generator.append(R"~~~(
     generator.append(R"~~~(
 #include <LibJS/Heap/Heap.h>
 #include <LibJS/Heap/Heap.h>
+#include <LibJS/Runtime/ArrayBuffer.h>
+#include <LibJS/Runtime/DataView.h>
 #include <LibJS/Runtime/GlobalObject.h>
 #include <LibJS/Runtime/GlobalObject.h>
 #include <LibJS/Runtime/IteratorOperations.h>
 #include <LibJS/Runtime/IteratorOperations.h>
-#include <LibJS/Runtime/ArrayBuffer.h>
+#include <LibJS/Runtime/TypedArray.h>
 #include <LibWeb/Bindings/@constructor_class@.h>
 #include <LibWeb/Bindings/@constructor_class@.h>
 #include <LibWeb/Bindings/@prototype_class@.h>
 #include <LibWeb/Bindings/@prototype_class@.h>
 #include <LibWeb/Bindings/ExceptionOrUtils.h>
 #include <LibWeb/Bindings/ExceptionOrUtils.h>