mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
LibJS: Convert length_of_array_like to ThrowCompletionOr
This commit is contained in:
parent
02a88c5063
commit
e90e4ac1e2
Notes:
sideshowbarker
2024-07-18 03:34:36 +09:00
Author: https://github.com/IdanHo
Commit: e90e4ac1e2
Pull-request: https://github.com/SerenityOS/serenity/pull/10169
Reviewed-by: https://github.com/linusg ✅
11 changed files with 55 additions and 126 deletions
|
@ -86,7 +86,7 @@ JS_DEFINE_NATIVE_FUNCTION(StringConstructor::raw)
|
|||
if (vm.exception())
|
||||
return {};
|
||||
|
||||
auto literal_segments = length_of_array_like(global_object, *raw);
|
||||
auto literal_segments = TRY_OR_DISCARD(length_of_array_like(global_object, *raw));
|
||||
if (vm.exception())
|
||||
return {};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue