summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2023-03-16 10:55:28 -0400
committerLinus Groh <mail@linusgroh.de>2023-03-16 19:39:17 +0000
commita277e645d3acfbf66e51f88b231caad5ee1bb5f1 (patch)
tree362601ea53528a67d99bfa2ca6201683fd43e0eb
parent08fabf7acb5aadd037975271692f2411fe0c5a51 (diff)
downloadserenity-a277e645d3acfbf66e51f88b231caad5ee1bb5f1.zip
LibWeb: Add LibJS includes to generated IDL namespace files
These will be needed by any namespace having a BufferSource parameter, such as WebAssembly. Similar to 49e6cb7c3d62eeeddf63c5db931038f1aeb58d53.
-rw-r--r--Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp b/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp
index 234ec48c08..c3aceae854 100644
--- a/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp
+++ b/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp
@@ -2739,8 +2739,11 @@ void generate_namespace_implementation(IDL::Interface const& interface, StringBu
generator.append(R"~~~(
#include <AK/Function.h>
#include <LibIDL/Types.h>
+#include <LibJS/Runtime/ArrayBuffer.h>
+#include <LibJS/Runtime/DataView.h>
#include <LibJS/Runtime/Error.h>
#include <LibJS/Runtime/PrimitiveString.h>
+#include <LibJS/Runtime/TypedArray.h>
#include <LibJS/Runtime/Value.h>
#include <LibWeb/Bindings/@namespace_class@.h>
#include <LibWeb/Bindings/ExceptionOrUtils.h>