/* * Copyright (c) 2023, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #include #include #include #include namespace Web::Internals { Internals::Internals(JS::Realm& realm) : Bindings::PlatformObject(realm) { } Internals::~Internals() = default; JS::ThrowCompletionOr Internals::initialize(JS::Realm& realm) { TRY(Base::initialize(realm)); Object::set_prototype(&Bindings::ensure_web_prototype(realm, "Internals")); return {}; } void Internals::gc() { vm().heap().collect_garbage(); } }