Closed infinity0 closed 9 years ago
Thanks for the research. You should submit a bug report at https://bugs.ecmascript.org/.
Bug reports regarding the ES6 draft should be reported at https://bugs.ecmascript.org/. Bugs regarding this program, which produces an HTML version of the ES6 draft, should be reported here on GitHub.
Thanks, filed as https://bugs.ecmascript.org/show_bug.cgi?id=4013
This results in
o === seen === [0, 1, 3]
in both Firefox 31.4 and Chrome 40.0. Similar results are obtained for Set and Map as well. However, the spec forArray.prototype.forEach
says:It would also be nice if the spec for
Set.prototype.forEach
andMap.prototype.forEach
mentioned this behaviour explicitly. Currently, the Set spec "sort of" implies this behaviour, and the Map spec does not mention it at all: