mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
LibWasm: Grow table type in table.grow
This commit is contained in:
parent
0aa76b5f67
commit
ed153a1720
Notes:
github-actions[bot]
2024-08-18 21:35:54 +00:00
Author: https://github.com/dzfrias Commit: https://github.com/LadybirdBrowser/ladybird/commit/ed153a1720e Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1105 Reviewed-by: https://github.com/alimpfard
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue