/* * Copyright (c) 2020, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include namespace JS { class NativeProperty final : public Cell { public: NativeProperty(AK::Function getter, AK::Function setter); virtual ~NativeProperty() override; Value get(VM&, GlobalObject&) const; void set(VM&, GlobalObject&, Value); private: virtual const char* class_name() const override { return "NativeProperty"; } AK::Function m_getter; AK::Function m_setter; }; }