/* * Copyright (c) 2020, Jack Karamanian * * SPDX-License-Identifier: BSD-2-Clause */ #include #include namespace JS { NonnullGCPtr BooleanObject::create(Realm& realm, bool value) { return realm.heap().allocate(realm, value, realm.intrinsics().boolean_prototype()).release_allocated_value_but_fixme_should_propagate_errors(); } BooleanObject::BooleanObject(bool value, Object& prototype) : Object(ConstructWithPrototypeTag::Tag, prototype) , m_value(value) { } }