mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibJS: Convert validate_typed_array() to ThrowCompletionOr
Also add spec step comments to it while we're here.
This commit is contained in:
@@ -19,8 +19,8 @@ static void validate_integer_typed_array(GlobalObject& global_object, TypedArray
|
||||
{
|
||||
auto& vm = global_object.vm();
|
||||
|
||||
validate_typed_array(global_object, typed_array);
|
||||
if (vm.exception())
|
||||
auto maybe_error = validate_typed_array(global_object, typed_array);
|
||||
if (maybe_error.is_error())
|
||||
return;
|
||||
|
||||
auto type_name = typed_array.element_name();
|
||||
|
||||
Reference in New Issue
Block a user