View Issue Details

IDProjectCategoryView StatusLast Update
0030635RunnerHTML5Public2019-05-08 14:54
ReporterStewart BishopAssigned ToAntanas Budvytis 
PriorityLowSeverityC - GeneralReproducibility100%
Status ClosedResolutionWon't Fix 
Product Version 
Target Version2.2.3Fixed in Version2.2.3 
Summary0030635: HTML5: Iteration through a ds_map is broken if you use ds_map_delete
DescriptionIf you delete an entry within a ds map whilst iterating over it using the ds_map_find_next function this will not work correctly on HTML5 giving you the wrong entries, on Windows this works fine.
Steps To Reproduce1) Run the sample on Windows
2) Run the sample on HTML5
3) See the difference
Tagshtml5, Runner
1.4 Found In
2.x Runtime Found In2.2.2.321
2.x Runtime Verified In9.9.1.1431

Activities

Stewart Bishop

2019-03-19 13:52

Adminstrator  

DSMapDelete.yyz (20,241 bytes)

Antanas Budvytis

2019-04-10 12:51

Developer   ~0063605

We do not guarantee consistent order in ds_maps, so in this case it is valid that deleting/adding an item under the same key will place it at the end of the map structure in JS (resulting in the error) as opposed to the same place in native, which allows us to continue iterating through the items.