diff options
Diffstat (limited to 'Userland/DevTools/HackStudio/Debugger/DebuggerVariableJSObject.h')
-rw-r--r-- | Userland/DevTools/HackStudio/Debugger/DebuggerVariableJSObject.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/DevTools/HackStudio/Debugger/DebuggerVariableJSObject.h b/Userland/DevTools/HackStudio/Debugger/DebuggerVariableJSObject.h index 817d014c0d..c44c0e907d 100644 --- a/Userland/DevTools/HackStudio/Debugger/DebuggerVariableJSObject.h +++ b/Userland/DevTools/HackStudio/Debugger/DebuggerVariableJSObject.h @@ -9,6 +9,7 @@ #pragma once #include "DebuggerGlobalJSObject.h" +#include <AK/StringView.h> #include <LibDebug/DebugInfo.h> #include <LibJS/Runtime/Completion.h> #include <LibJS/Runtime/Object.h> @@ -24,7 +25,7 @@ public: DebuggerVariableJSObject(const Debug::DebugInfo::VariableInfo& variable_info, JS::Object& prototype); virtual ~DebuggerVariableJSObject() override = default; - virtual const char* class_name() const override { return m_variable_info.type_name.characters(); } + virtual StringView class_name() const override { return m_variable_info.type_name; } JS::ThrowCompletionOr<bool> internal_set(JS::PropertyKey const&, JS::Value value, JS::Value receiver) override; |