diff options
Diffstat (limited to 'Userland/Libraries/LibWeb')
-rw-r--r-- | Userland/Libraries/LibWeb/Fetch/HeadersIterator.cpp | 8 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/URL/URLSearchParamsIterator.cpp | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/Userland/Libraries/LibWeb/Fetch/HeadersIterator.cpp b/Userland/Libraries/LibWeb/Fetch/HeadersIterator.cpp index a7dd7c4073..dd9397d5eb 100644 --- a/Userland/Libraries/LibWeb/Fetch/HeadersIterator.cpp +++ b/Userland/Libraries/LibWeb/Fetch/HeadersIterator.cpp @@ -30,18 +30,18 @@ JS::ThrowCompletionOr<JS::Object*> HeadersIterator::next() auto pairs = TRY(value_pairs_to_iterate_over()); if (m_index >= pairs.size()) - return create_iterator_result_object(global_object, JS::js_undefined(), true); + return create_iterator_result_object(vm, JS::js_undefined(), true); auto const& pair = pairs[m_index++]; switch (m_iteration_kind) { case JS::Object::PropertyKind::Key: - return create_iterator_result_object(global_object, JS::js_string(vm, StringView { pair.name }), false); + return create_iterator_result_object(vm, JS::js_string(vm, StringView { pair.name }), false); case JS::Object::PropertyKind::Value: - return create_iterator_result_object(global_object, JS::js_string(vm, StringView { pair.value }), false); + return create_iterator_result_object(vm, JS::js_string(vm, StringView { pair.value }), false); case JS::Object::PropertyKind::KeyAndValue: { auto* array = JS::Array::create_from(realm, { JS::js_string(vm, StringView { pair.name }), JS::js_string(vm, StringView { pair.value }) }); - return create_iterator_result_object(global_object, array, false); + return create_iterator_result_object(vm, array, false); } default: VERIFY_NOT_REACHED(); diff --git a/Userland/Libraries/LibWeb/URL/URLSearchParamsIterator.cpp b/Userland/Libraries/LibWeb/URL/URLSearchParamsIterator.cpp index 1827364622..b32ffe406d 100644 --- a/Userland/Libraries/LibWeb/URL/URLSearchParamsIterator.cpp +++ b/Userland/Libraries/LibWeb/URL/URLSearchParamsIterator.cpp @@ -19,15 +19,15 @@ JS::Object* URLSearchParamsIterator::next() auto& realm = *global_object.associated_realm(); if (m_index >= m_url_search_params.m_list.size()) - return create_iterator_result_object(global_object, JS::js_undefined(), true); + return create_iterator_result_object(vm, JS::js_undefined(), true); auto& entry = m_url_search_params.m_list[m_index++]; if (m_iteration_kind == JS::Object::PropertyKind::Key) - return create_iterator_result_object(global_object, JS::js_string(vm, entry.name), false); + return create_iterator_result_object(vm, JS::js_string(vm, entry.name), false); else if (m_iteration_kind == JS::Object::PropertyKind::Value) - return create_iterator_result_object(global_object, JS::js_string(vm, entry.value), false); + return create_iterator_result_object(vm, JS::js_string(vm, entry.value), false); - return create_iterator_result_object(global_object, JS::Array::create_from(realm, { JS::js_string(vm, entry.name), JS::js_string(vm, entry.value) }), false); + return create_iterator_result_object(vm, JS::Array::create_from(realm, { JS::js_string(vm, entry.name), JS::js_string(vm, entry.value) }), false); } void URLSearchParamsIterator::visit_edges(JS::Cell::Visitor& visitor) |