mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:47:45 +00:00
LibJS: Convert the GetValue AO to ThrowCompletionOr
This commit is contained in:
parent
d73b258874
commit
390a04a985
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