diff --git a/Userland/Libraries/LibWeb/Bindings/PlatformObject.h b/Userland/Libraries/LibWeb/Bindings/PlatformObject.h index a866933dd4..c0e6cf76b1 100644 --- a/Userland/Libraries/LibWeb/Bindings/PlatformObject.h +++ b/Userland/Libraries/LibWeb/Bindings/PlatformObject.h @@ -24,13 +24,9 @@ namespace Web::Bindings { return *this; \ } -#define WRAPPER_HACK(class_, namespace_) \ - namespace Web::Bindings { \ - inline JS::Object* wrap(JS::Realm&, namespace_::class_& object) \ - { \ - return &object; \ - } \ - using class_##Wrapper = namespace_::class_; \ +#define WRAPPER_HACK(class_, namespace_) \ + namespace Web::Bindings { \ + using class_##Wrapper = namespace_::class_; \ } // https://webidl.spec.whatwg.org/#dfn-platform-object