/* * Copyright (c) 2025, Artsiom Yafremau * * SPDX-License-Identifier: BSD-2-Clause */ #include #include namespace JS { GC_DEFINE_ALLOCATOR(RawJSONObject); GC::Ref RawJSONObject::create(Realm& realm, Object* prototype) { if (!prototype) return realm.create(realm.intrinsics().empty_object_shape()); return realm.create(ConstructWithPrototypeTag::Tag, *prototype); } }