LibWasm: Grow table type in table.grow

This commit is contained in:
Diego Frias 2024-08-18 10:56:25 -07:00 committed by Ali Mohammad Pur
parent 0aa76b5f67
commit ed153a1720
Notes: github-actions[bot] 2024-08-18 21:35:54 +00:00

View file

@ -408,6 +408,9 @@ public:
return false;
for (size_t i = previous_size; i < m_elements.size(); ++i)
m_elements[i] = fill_value;
m_type = TableType { m_type.element_type(), Limits(m_type.limits().min() + size_to_grow, m_type.limits().max()) };
return true;
}