diff --git a/Userland/Libraries/LibJS/Runtime/TypedArray.cpp b/Userland/Libraries/LibJS/Runtime/TypedArray.cpp index e92bdef156..90d543acc6 100644 --- a/Userland/Libraries/LibJS/Runtime/TypedArray.cpp +++ b/Userland/Libraries/LibJS/Runtime/TypedArray.cpp @@ -294,10 +294,10 @@ void TypedArrayBase::visit_edges(Visitor& visitor) if (vm.exception()) \ return {}; \ } else { \ - auto iterator = first_argument.as_object().get(*vm.well_known_symbol_iterator()); \ + auto iterator = first_argument.get_method(global_object(), *vm.well_known_symbol_iterator()); \ if (vm.exception()) \ return {}; \ - if (iterator.is_function()) { \ + if (iterator) { \ auto values = iterable_to_list(global_object(), first_argument, iterator); \ if (vm.exception()) \ return {}; \