diff options
author | Linus Groh <mail@linusgroh.de> | 2022-12-13 20:49:49 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-12-14 09:59:45 +0000 |
commit | 91b0123eaf16afd8a36c3603535860385e75bd81 (patch) | |
tree | 9b54cd78d322346f9786900ddb9ceefb0b0fd815 /Userland/Services | |
parent | 0c50751c134385d690e436249b79e3ddf74ee369 (diff) | |
download | serenity-91b0123eaf16afd8a36c3603535860385e75bd81.zip |
LibJS: Convert Array::create{,_from}() to NonnullGCPtr
Diffstat (limited to 'Userland/Services')
-rw-r--r-- | Userland/Services/WebContent/ConsoleGlobalEnvironmentExtensions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/WebContent/ConsoleGlobalEnvironmentExtensions.cpp b/Userland/Services/WebContent/ConsoleGlobalEnvironmentExtensions.cpp index 3377b1a4fe..fa9f792f4c 100644 --- a/Userland/Services/WebContent/ConsoleGlobalEnvironmentExtensions.cpp +++ b/Userland/Services/WebContent/ConsoleGlobalEnvironmentExtensions.cpp @@ -109,7 +109,7 @@ JS_DEFINE_NATIVE_FUNCTION(ConsoleGlobalEnvironmentExtensions::$$_function) return element->query_selector_all(selector); })); - auto* array = TRY(JS::Array::create(*vm.current_realm(), node_list->length())); + auto array = TRY(JS::Array::create(*vm.current_realm(), node_list->length())); for (auto i = 0u; i < node_list->length(); ++i) { TRY(array->create_data_property_or_throw(i, node_list->item_value(i))); } |