LibJS: Convert the GetValue AO to ThrowCompletionOr

This commit is contained in:
Idan Horowitz 2021-11-02 18:49:08 +02:00 committed by Linus Groh
commit 390a04a985
Notes: sideshowbarker 2024-07-18 01:33:41 +09:00
6 changed files with 33 additions and 49 deletions

View file

@ -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 {