dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.23k stars 1.57k forks source link

[next] _DOMStringMap computes keys and values eagerly #7956

Open floitschG opened 11 years ago

floitschG commented 11 years ago

The current implementation of _DOMStringMap computes the keys and values eagerly. It should compute them lazily. The behavior is undefined if the map is changed during iteration, but only when an "iterator" is actually in use. For example: var map = new Map(); var keys = map.keys; map["foo"] = 499; // legal. for (var x = in keys) print(x); // prints "499". map["bar"] = 42; for (var x = in keys) {   map["toto"] = -1; // bad. Mutation not allowed while iterating. }

efortuna commented 11 years ago

Added this to the Later milestone.

kevmoo commented 10 years ago

Removed Area-HTML label. Added Area-Library, Library-Html labels.

kasperl commented 10 years ago

Removed this from the Later milestone. Added Oldschool-Milestone-Later label.

kasperl commented 10 years ago

Removed Oldschool-Milestone-Later label.

alan-knight commented 9 years ago

Might get addressed by Terry's work.


_Changed the title to: "[next] DOMStringMap computes keys and values eagerly".