kpreisser
5043bf72f5
PR feedback.
2019-02-07 09:01:27 +01:00
kpreisser
97d2ea8f32
Minor improvements of code and comments.
2019-02-01 11:59:30 +01:00
kpreisser
9140cbc29e
Correctly adjust the backward reference of the next entry when deleting an entry.
2019-02-01 11:59:28 +01:00
kpreisser
c4960d3c11
Adjust the unit test to spot a missed bug in the delete() implementation.
2019-02-01 11:59:26 +01:00
kpreisser
472157e523
Revert a few unneeded (stylistic) changes.
2019-02-01 11:59:25 +01:00
kpreisser
c8e329bcbc
Rework the implementation of the shimMap to ensure iterators will behave the same as with native Maps.
...
This includes:
- Entries are visited in insertion order
- New entries added during iteration will be visited
- Entries that are removed during iteration (before being visited) will not be visited
Fixes #26090
2019-02-01 11:59:24 +01:00
kpreisser
b502ae98e1
Add a unit test for the shimMap (currently failing).
...
This will test that iteration is in insertion order, new entries added during iteration will be visited by the iterator, and values can be deleted while an iterator is running.
2019-02-01 11:59:22 +01:00
kpreisser
41bef5f77c
PR review: Fix typo.
2019-02-01 11:59:20 +01:00
kpreisser
c0c71bf65e
Fix lint issues.
2019-02-01 11:59:17 +01:00
kpreisser
bff5436ac9
Follow-Up: Avoid the memory leak problem by simply not allowing existing iterators to continue once an entry has been deleted from the map.
...
Fixes #26090
2019-02-01 11:59:15 +01:00
kpreisser
8626b927be
Adjust the iteration behavior of the shimMap (used for IE 11) to visit values that are added while forEach is running.
...
Fixes #26090
2019-02-01 11:59:13 +01:00
kpreisser
6d02d1fde8
Add tests.
2017-03-06 08:29:58 +01:00
kpreisser
39d1c8b844
Allow the right-hand side of an 'in' expression to be of non-primitive object type.
...
Fixes #14269
2017-03-06 08:29:57 +01:00