haikuwebkit/LayoutTests/js/script-tests/map-iterate-first-entry-is-...

8 lines
209 B
JavaScript

description("Tests to make sure we correctly handle iterating a map when the first entry is a hole");
var map0= new Map;
map0.set(125, {});
map0.delete(125);
map0.forEach(function(node) {
print(node);
});