Misnamed variable

This commit is contained in:
Ralph Wessel
2024-08-20 08:43:18 +01:00
parent 5030ba1bd7
commit a2000eb8a8
@@ -218,7 +218,7 @@ namespace {
//Decomose an object
for (auto& item : object->GetItemTable())
result.push_back({item.value->operator JS::Base*(), String{*item.key}});
} else if (auto array = dynamic_cast<JS::Array*>(&source); object != nullptr) {
} else if (auto array = dynamic_cast<JS::Array*>(&source); array != nullptr) {
//Decomose an array
for (auto& item : array->GetItemArray())
result.push_back({item, std::nullopt});