From 70a2ca7fc0939dd0d61691c17e108c6169ef6d30 Mon Sep 17 00:00:00 2001 From: Matthew Olsson Date: Sat, 25 Feb 2023 10:44:31 -0700 Subject: LibJS: Handle both const and non-const Ts in Handle::create() Again, the const-ness only really involves Heap-internal metadata, so the callers shouldn't care about mutations here. --- Userland/Libraries/LibWeb/DOM/Document.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Libraries/LibWeb/DOM') diff --git a/Userland/Libraries/LibWeb/DOM/Document.cpp b/Userland/Libraries/LibWeb/DOM/Document.cpp index 8db5a31feb..9ec12f1951 100644 --- a/Userland/Libraries/LibWeb/DOM/Document.cpp +++ b/Userland/Libraries/LibWeb/DOM/Document.cpp @@ -2121,7 +2121,7 @@ Vector> Document::list_of_descendant_browsing_ // of this document's browsing context. if (browsing_context()) { browsing_context()->for_each_in_subtree([&](auto& context) { - list.append(JS::make_handle(const_cast(context))); + list.append(JS::make_handle(context)); return IterationDecision::Continue; }); } -- cgit v1.2.3