mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
LibJS: Convert the GetValue AO to ThrowCompletionOr
This commit is contained in:
parent
d73b258874
commit
390a04a985
Notes:
sideshowbarker
2024-07-18 01:33:41 +09:00
Author: https://github.com/IdanHo
Commit: 390a04a985
Pull-request: https://github.com/SerenityOS/serenity/pull/10765
Reviewed-by: https://github.com/linusg ✅
6 changed files with 33 additions and 49 deletions
|
@ -130,7 +130,7 @@ public:
|
|||
}
|
||||
|
||||
void put_value(GlobalObject&, Value);
|
||||
Value get_value(GlobalObject&) const;
|
||||
ThrowCompletionOr<Value> get_value(GlobalObject&) const;
|
||||
ThrowCompletionOr<bool> delete_(GlobalObject&);
|
||||
|
||||
String to_string() const;
|
||||
|
@ -140,7 +140,7 @@ public:
|
|||
Optional<EnvironmentCoordinate> environment_coordinate() const { return m_environment_coordinate; }
|
||||
|
||||
private:
|
||||
void throw_reference_error(GlobalObject&) const;
|
||||
Completion throw_reference_error(GlobalObject&) const;
|
||||
|
||||
BaseType m_base_type { BaseType::Unresolvable };
|
||||
union {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue