summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Runtime/NativeProperty.h
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibJS/Runtime/NativeProperty.h')
-rw-r--r--Libraries/LibJS/Runtime/NativeProperty.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/Libraries/LibJS/Runtime/NativeProperty.h b/Libraries/LibJS/Runtime/NativeProperty.h
index 1cdcbc4f2d..b3474bfe67 100644
--- a/Libraries/LibJS/Runtime/NativeProperty.h
+++ b/Libraries/LibJS/Runtime/NativeProperty.h
@@ -31,18 +31,16 @@
namespace JS {
-class NativeProperty final : public Object {
- JS_OBJECT(NativeProperty, Object);
-
+class NativeProperty final : public Cell {
public:
- NativeProperty(GlobalObject&, AK::Function<Value(Interpreter&, GlobalObject&)> getter, AK::Function<void(Interpreter&, GlobalObject&, Value)> setter);
+ NativeProperty(AK::Function<Value(Interpreter&, GlobalObject&)> getter, AK::Function<void(Interpreter&, GlobalObject&, Value)> setter);
virtual ~NativeProperty() override;
Value get(Interpreter&, GlobalObject&) const;
void set(Interpreter&, GlobalObject&, Value);
private:
- virtual bool is_native_property() const override { return true; }
+ virtual const char* class_name() const override { return "NativeProperty"; }
AK::Function<Value(Interpreter&, GlobalObject&)> m_getter;
AK::Function<void(Interpreter&, GlobalObject&, Value)> m_setter;