LibWeb: Use the WRAPPER_HACK() macro instead of hand-coding wrap()

This macro will soon go away, but let's start by replacing all the
hand-coded versions of wrap() with this macro that expands to the same
exact thing.
This commit is contained in:
Andreas Kling 2022-09-04 21:48:07 +02:00
commit 45425de849
Notes: sideshowbarker 2024-07-17 07:24:06 +09:00
17 changed files with 17 additions and 68 deletions

View file

@ -58,7 +58,4 @@ private:
}
namespace Web::Bindings {
inline JS::Object* wrap(JS::Realm&, Web::HTML::ErrorEvent& object) { return &object; }
using ErrorEventWrapper = Web::HTML::ErrorEvent;
}
WRAPPER_HACK(ErrorEvent, Web::HTML)