mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
HackStudio: Display variable type name in expression evaluator
This commit is contained in:
parent
4f2c0e9968
commit
d8409c0e29
Notes:
sideshowbarker
2024-07-18 19:06:06 +09:00
Author: https://github.com/FalseHonesty
Commit: d8409c0e29
Pull-request: https://github.com/SerenityOS/serenity/pull/6285
Reviewed-by: https://github.com/itamar8910 ✅
Reviewed-by: https://github.com/linusg
1 changed files with 3 additions and 1 deletions
|
@ -14,7 +14,7 @@
|
||||||
namespace HackStudio {
|
namespace HackStudio {
|
||||||
|
|
||||||
class DebuggerVariableJSObject final : public JS::Object {
|
class DebuggerVariableJSObject final : public JS::Object {
|
||||||
JS_OBJECT(DebuggerVariableJSObject, JS::Object);
|
using Base = JS::Object;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static DebuggerVariableJSObject* create(DebuggerGlobalJSObject&, const Debug::DebugInfo::VariableInfo& variable_info);
|
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);
|
DebuggerVariableJSObject(const Debug::DebugInfo::VariableInfo& variable_info, JS::Object& prototype);
|
||||||
virtual ~DebuggerVariableJSObject() override;
|
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;
|
virtual bool put(const JS::PropertyName& name, JS::Value value, JS::Value) override;
|
||||||
void finish_writing_properties() { m_is_writing_properties = false; }
|
void finish_writing_properties() { m_is_writing_properties = false; }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue