mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 01:29:17 +00:00
LibJS: Convert to_object() to ThrowCompletionOr
This commit is contained in:
parent
9eb065a1f6
commit
52976bfac6
Notes:
sideshowbarker
2024-07-18 02:47:31 +09:00
Author: https://github.com/linusg
Commit: 52976bfac6
Pull-request: https://github.com/SerenityOS/serenity/pull/10452
Reviewed-by: https://github.com/IdanHo ✅
45 changed files with 239 additions and 490 deletions
|
@ -1347,7 +1347,7 @@ int main(int argc, char** argv)
|
|||
if (!variable.is_object())
|
||||
break;
|
||||
|
||||
auto const* object = variable.to_object(interpreter->global_object());
|
||||
auto const* object = MUST(variable.to_object(interpreter->global_object()));
|
||||
auto const& shape = object->shape();
|
||||
list_all_properties(shape, property_name);
|
||||
if (results.size())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue