mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-27 11:24:16 +00:00
34 lines
657 B
C++
34 lines
657 B
C++
|
|
/*
|
||
|
|
* Copyright (c) 2024, stelar7 <dudedbz@gmail.com>
|
||
|
|
*
|
||
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
||
|
|
*/
|
||
|
|
|
||
|
|
#include <LibWeb/Bindings/IDBKeyRangePrototype.h>
|
||
|
|
#include <LibWeb/Bindings/Intrinsics.h>
|
||
|
|
#include <LibWeb/IndexedDB/IDBKeyRange.h>
|
||
|
|
|
||
|
|
namespace Web::IndexedDB {
|
||
|
|
|
||
|
|
GC_DEFINE_ALLOCATOR(IDBKeyRange);
|
||
|
|
|
||
|
|
IDBKeyRange::~IDBKeyRange() = default;
|
||
|
|
|
||
|
|
IDBKeyRange::IDBKeyRange(JS::Realm& realm)
|
||
|
|
: PlatformObject(realm)
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
GC::Ref<IDBKeyRange> IDBKeyRange::create(JS::Realm& realm)
|
||
|
|
{
|
||
|
|
return realm.create<IDBKeyRange>(realm);
|
||
|
|
}
|
||
|
|
|
||
|
|
void IDBKeyRange::initialize(JS::Realm& realm)
|
||
|
|
{
|
||
|
|
Base::initialize(realm);
|
||
|
|
WEB_SET_PROTOTYPE_FOR_INTERFACE(IDBKeyRange);
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|