summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Fetch/Request.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibWeb/Fetch/Request.cpp')
-rw-r--r--Userland/Libraries/LibWeb/Fetch/Request.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Fetch/Request.cpp b/Userland/Libraries/LibWeb/Fetch/Request.cpp
index 47b7a0fc22..bb46a039c5 100644
--- a/Userland/Libraries/LibWeb/Fetch/Request.cpp
+++ b/Userland/Libraries/LibWeb/Fetch/Request.cpp
@@ -25,11 +25,16 @@ Request::Request(JS::Realm& realm, JS::NonnullGCPtr<Infrastructure::Request> req
: PlatformObject(realm)
, m_request(request)
{
- set_prototype(&Bindings::cached_web_prototype(realm, "Request"));
}
Request::~Request() = default;
+void Request::initialize(JS::Realm& realm)
+{
+ Base::initialize(realm);
+ set_prototype(&Bindings::ensure_web_prototype<Bindings::RequestPrototype>(realm, "Request"));
+}
+
void Request::visit_edges(Cell::Visitor& visitor)
{
Base::visit_edges(visitor);