From 3be26f56db0b70c02a361e7ccf797eecfd84ab99 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sun, 3 Oct 2021 02:17:33 +0100 Subject: LibJS: Convert has_own_property() to ThrowCompletionOr --- Userland/Applications/Spreadsheet/Spreadsheet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Applications/Spreadsheet') diff --git a/Userland/Applications/Spreadsheet/Spreadsheet.cpp b/Userland/Applications/Spreadsheet/Spreadsheet.cpp index 85b58501cf..84900d3b66 100644 --- a/Userland/Applications/Spreadsheet/Spreadsheet.cpp +++ b/Userland/Applications/Spreadsheet/Spreadsheet.cpp @@ -656,7 +656,7 @@ JsonObject Sheet::gather_documentation() const return; auto& value_object = value.is_object() ? value.as_object() : value.as_function(); - if (!value_object.has_own_property(doc_name)) + if (!value_object.has_own_property(doc_name).release_value()) return; dbgln("Found '{}'", it.key.to_display_string()); -- cgit v1.2.3