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 49e6cb7c3d.
This commit is contained in:
Timothy Flynn 2023-03-16 10:55:28 -04:00 committed by Linus Groh
commit a277e645d3
Notes: sideshowbarker 2024-07-17 21:11:12 +09:00

View file

@ -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>