summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/URL
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibWeb/URL')
-rw-r--r--Userland/Libraries/LibWeb/URL/URLSearchParamsIterator.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/Userland/Libraries/LibWeb/URL/URLSearchParamsIterator.cpp b/Userland/Libraries/LibWeb/URL/URLSearchParamsIterator.cpp
index b32ffe406d..bf21003141 100644
--- a/Userland/Libraries/LibWeb/URL/URLSearchParamsIterator.cpp
+++ b/Userland/Libraries/LibWeb/URL/URLSearchParamsIterator.cpp
@@ -14,9 +14,8 @@ namespace Web::URL {
JS::Object* URLSearchParamsIterator::next()
{
- auto& global_object = wrapper()->global_object();
- auto& vm = global_object.vm();
- auto& realm = *global_object.associated_realm();
+ auto& vm = wrapper()->vm();
+ auto& realm = *vm.current_realm();
if (m_index >= m_url_search_params.m_list.size())
return create_iterator_result_object(vm, JS::js_undefined(), true);