1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:37:46 +00:00

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
parent d73b258874
commit 390a04a985
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 {