diff --git a/Userland/Libraries/LibJS/Runtime/AbstractOperations.cpp b/Userland/Libraries/LibJS/Runtime/AbstractOperations.cpp index 2c53fb0191..e631359ac1 100644 --- a/Userland/Libraries/LibJS/Runtime/AbstractOperations.cpp +++ b/Userland/Libraries/LibJS/Runtime/AbstractOperations.cpp @@ -77,7 +77,7 @@ ThrowCompletionOr create_list_from_array_like(GlobalObject& glo // 6. Repeat, while index < len, for (size_t i = 0; i < length; ++i) { // a. Let indexName be ! ToString(𝔽(index)). - auto index_name = String::number(i); + auto index_name = PropertyName { i }; // b. Let next be ? Get(obj, indexName). auto next = TRY(array_like.get(index_name));