LibWeb: Don't generate a wrap() function for the Event IDL interface

We already have a wrap() in EventWrapperFactory.cpp. It would be nice
to generate that at some point but it will require a lot more work on
the wrapper generator.
This commit is contained in:
Andreas Kling 2020-11-27 13:54:58 +01:00
parent ddbfd77e2c
commit 024b216141
Notes: sideshowbarker 2024-07-19 01:15:25 +09:00
2 changed files with 3 additions and 0 deletions

View file

@ -36,6 +36,7 @@
#include <LibTextCodec/Decoder.h>
#include <LibWeb/Bindings/DocumentWrapper.h>
#include <LibWeb/Bindings/EventWrapper.h>
#include <LibWeb/Bindings/EventWrapperFactory.h>
#include <LibWeb/Bindings/LocationObject.h>
#include <LibWeb/Bindings/NavigatorObject.h>
#include <LibWeb/Bindings/NodeWrapperFactory.h>

View file

@ -342,6 +342,8 @@ int main(int argc, char** argv)
static bool should_emit_wrapper_factory(const IDL::Interface& interface)
{
// FIXME: This is very hackish.
if (interface.name == "Event")
return false;
if (interface.name == "EventTarget")
return false;
if (interface.name == "Node")