mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 02:17:35 +00:00
LibJS: Convert internal_get() to ThrowCompletionOr
This commit is contained in:
parent
d9895ec12d
commit
6c2b974db2
17 changed files with 39 additions and 44 deletions
|
@ -8,6 +8,7 @@
|
|||
|
||||
#include <AK/Weakable.h>
|
||||
#include <LibDebug/DebugInfo.h>
|
||||
#include <LibJS/Runtime/Completion.h>
|
||||
#include <LibJS/Runtime/GlobalObject.h>
|
||||
|
||||
namespace HackStudio {
|
||||
|
@ -20,7 +21,7 @@ class DebuggerGlobalJSObject final
|
|||
public:
|
||||
DebuggerGlobalJSObject();
|
||||
|
||||
virtual JS::Value internal_get(JS::PropertyName const&, JS::Value receiver) const override;
|
||||
virtual JS::ThrowCompletionOr<JS::Value> internal_get(JS::PropertyName const&, JS::Value receiver) const override;
|
||||
virtual bool internal_set(JS::PropertyName const&, JS::Value value, JS::Value receiver) override;
|
||||
|
||||
Optional<JS::Value> debugger_to_js(const Debug::DebugInfo::VariableInfo&) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue