diff options
author | Linus Groh <mail@linusgroh.de> | 2021-10-03 02:17:33 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-10-03 20:14:03 +0100 |
commit | 3be26f56db0b70c02a361e7ccf797eecfd84ab99 (patch) | |
tree | e219b220a9550a3408bc8050a2a5ad3976563357 /Userland/Services/WebContent/ConsoleGlobalObject.cpp | |
parent | f38a5957bf7c7546181fc098bb27e45a7a21415d (diff) | |
download | serenity-3be26f56db0b70c02a361e7ccf797eecfd84ab99.zip |
LibJS: Convert has_own_property() to ThrowCompletionOr
Diffstat (limited to 'Userland/Services/WebContent/ConsoleGlobalObject.cpp')
-rw-r--r-- | Userland/Services/WebContent/ConsoleGlobalObject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/WebContent/ConsoleGlobalObject.cpp b/Userland/Services/WebContent/ConsoleGlobalObject.cpp index 308d161775..f3a77e4442 100644 --- a/Userland/Services/WebContent/ConsoleGlobalObject.cpp +++ b/Userland/Services/WebContent/ConsoleGlobalObject.cpp @@ -77,7 +77,7 @@ JS::ThrowCompletionOr<bool> ConsoleGlobalObject::internal_has_property(JS::Prope JS::ThrowCompletionOr<JS::Value> ConsoleGlobalObject::internal_get(JS::PropertyName const& property_name, JS::Value receiver) const { - if (m_window_object->has_own_property(property_name)) + if (TRY(m_window_object->has_own_property(property_name))) return m_window_object->internal_get(property_name, (receiver == this) ? m_window_object : receiver); return Base::internal_get(property_name, receiver); |