Files
ladybird/Libraries/LibJS/Runtime
Linus Groh e07490ce13 LibJS: Don't assume value for index < size in IndexedPropertyIterator
This assumption only works for the m_packed_elements Vector where a
missing value at a certain index still returns an empty value, but not
for the m_sparse_elements HashMap, which is being used for indices
>= 200 - in that case the Optional<ValueAndAttributes> result will not
have a value.

This fixes a crash in the js REPL where printing an array with a hole at
any index >= 200 would crash.
2020-10-14 00:52:47 +02:00
..
2020-10-04 17:03:33 +02:00
2020-10-04 17:03:33 +02:00
2020-07-13 15:07:29 +02:00
2020-10-02 18:01:27 +02:00