mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:47:36 +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:
parent
d7d73f9100
commit
3655aee543
4 changed files with 20 additions and 12 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue