diff options
author | Matthew Olsson <matthewcolsson@gmail.com> | 2023-02-25 10:44:31 -0700 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-03-06 13:05:43 +0000 |
commit | 70a2ca7fc0939dd0d61691c17e108c6169ef6d30 (patch) | |
tree | f798d956bba744bc7c607508be52532e5055096b /Userland/Libraries/LibWeb/DOM | |
parent | 74e93a46eaf9be3c3835682ab2c190c75371ac86 (diff) | |
download | serenity-70a2ca7fc0939dd0d61691c17e108c6169ef6d30.zip |
LibJS: Handle both const and non-const Ts in Handle<T>::create()
Again, the const-ness only really involves Heap-internal metadata, so
the callers shouldn't care about mutations here.
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/Document.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<JS::Handle<HTML::BrowsingContext>> 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<HTML::BrowsingContext&>(context))); + list.append(JS::make_handle(context)); return IterationDecision::Continue; }); } |