From 91b0123eaf16afd8a36c3603535860385e75bd81 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Tue, 13 Dec 2022 20:49:49 +0000 Subject: LibJS: Convert Array::create{,_from}() to NonnullGCPtr --- Userland/Libraries/LibWeb/Bindings/MainThreadVM.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Libraries/LibWeb/Bindings') diff --git a/Userland/Libraries/LibWeb/Bindings/MainThreadVM.cpp b/Userland/Libraries/LibWeb/Bindings/MainThreadVM.cpp index c57622217e..b3335506dd 100644 --- a/Userland/Libraries/LibWeb/Bindings/MainThreadVM.cpp +++ b/Userland/Libraries/LibWeb/Bindings/MainThreadVM.cpp @@ -443,7 +443,7 @@ void queue_mutation_observer_microtask(DOM::Document& document) auto& callback = mutation_observer->callback(); auto& realm = callback.callback_context.realm(); - auto* wrapped_records = MUST(JS::Array::create(realm, 0)); + auto wrapped_records = MUST(JS::Array::create(realm, 0)); for (size_t i = 0; i < records.size(); ++i) { auto& record = records.at(i); auto property_index = JS::PropertyKey { i }; -- cgit v1.2.3