mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 01:00:05 +00:00
LibJS: Convert internal_set() to ThrowCompletionOr
This commit is contained in:
parent
6c2b974db2
commit
e5409c6ead
Notes:
sideshowbarker
2024-07-18 03:19:06 +09:00
Author: https://github.com/linusg
Commit: e5409c6ead
Pull-request: https://github.com/SerenityOS/serenity/pull/10266
Reviewed-by: https://github.com/IdanHo ✅
19 changed files with 66 additions and 69 deletions
|
@ -9,6 +9,7 @@
|
|||
|
||||
#include "DebuggerGlobalJSObject.h"
|
||||
#include <LibDebug/DebugInfo.h>
|
||||
#include <LibJS/Runtime/Completion.h>
|
||||
#include <LibJS/Runtime/Object.h>
|
||||
|
||||
namespace HackStudio {
|
||||
|
@ -24,7 +25,7 @@ public:
|
|||
|
||||
virtual const char* class_name() const override { return m_variable_info.type_name.characters(); }
|
||||
|
||||
bool internal_set(JS::PropertyName const&, JS::Value value, JS::Value receiver) override;
|
||||
JS::ThrowCompletionOr<bool> internal_set(JS::PropertyName const&, JS::Value value, JS::Value receiver) override;
|
||||
|
||||
private:
|
||||
DebuggerGlobalJSObject& debugger_object() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue