1
Fork 0
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:
Linus Groh 2021-10-03 20:20:19 +01:00
parent d7d73f9100
commit 3655aee543
4 changed files with 20 additions and 12 deletions

View file

@ -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();