diff --git a/Userland/DevTools/HackStudio/Debugger/DebuggerVariableJSObject.h b/Userland/DevTools/HackStudio/Debugger/DebuggerVariableJSObject.h index bdf06360e4..0b81676a53 100644 --- a/Userland/DevTools/HackStudio/Debugger/DebuggerVariableJSObject.h +++ b/Userland/DevTools/HackStudio/Debugger/DebuggerVariableJSObject.h @@ -14,7 +14,7 @@ namespace HackStudio { class DebuggerVariableJSObject final : public JS::Object { - JS_OBJECT(DebuggerVariableJSObject, JS::Object); + using Base = JS::Object; public: static DebuggerVariableJSObject* create(DebuggerGlobalJSObject&, const Debug::DebugInfo::VariableInfo& variable_info); @@ -22,6 +22,8 @@ public: DebuggerVariableJSObject(const Debug::DebugInfo::VariableInfo& variable_info, JS::Object& prototype); virtual ~DebuggerVariableJSObject() override; + virtual const char* class_name() const override { return m_variable_info.type_name.characters(); } + virtual bool put(const JS::PropertyName& name, JS::Value value, JS::Value) override; void finish_writing_properties() { m_is_writing_properties = false; }