/* * Copyright (c) 2024, Shannon Booth * * SPDX-License-Identifier: BSD-2-Clause */ #include #include #include #include namespace Web::IndexedDB { JS_DEFINE_ALLOCATOR(IDBFactory); IDBFactory::IDBFactory(JS::Realm& realm) : Bindings::PlatformObject(realm) { } IDBFactory::~IDBFactory() = default; void IDBFactory::initialize(JS::Realm& realm) { Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(IDBFactory); } // https://w3c.github.io/IndexedDB/#dom-idbfactory-open JS::NonnullGCPtr IDBFactory::open(String const&, Optional) { dbgln("FIXME: Implement IDBFactory::open"); auto& realm = this->realm(); return vm().heap().allocate(realm, realm); } }