IDBRequest.cpp 547 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2024, Shannon Booth <shannon@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #include <LibWeb/Bindings/IDBRequestPrototype.h>
  7. #include <LibWeb/Bindings/Intrinsics.h>
  8. #include <LibWeb/IndexedDB/IDBRequest.h>
  9. namespace Web::IndexedDB {
  10. JS_DEFINE_ALLOCATOR(IDBRequest);
  11. IDBRequest::~IDBRequest() = default;
  12. IDBRequest::IDBRequest(JS::Realm& realm)
  13. : EventTarget(realm)
  14. {
  15. }
  16. void IDBRequest::initialize(JS::Realm& realm)
  17. {
  18. Base::initialize(realm);
  19. WEB_SET_PROTOTYPE_FOR_INTERFACE(IDBRequest);
  20. }
  21. }