/* * Copyright (c) 2023, Luke Wilde * * SPDX-License-Identifier: BSD-2-Clause */ #include #include #include namespace Web::XHR { XMLHttpRequestUpload::XMLHttpRequestUpload(JS::Realm& realm) : XMLHttpRequestEventTarget(realm) { } XMLHttpRequestUpload::~XMLHttpRequestUpload() = default; JS::ThrowCompletionOr XMLHttpRequestUpload::initialize(JS::Realm& realm) { MUST_OR_THROW_OOM(Base::initialize(realm)); set_prototype(&Bindings::ensure_web_prototype(realm, "XMLHttpRequestUpload")); return {}; } }