archives

« Bugzilla Issues Index

#4313 — References to "the for-in statement" should maybe instead refer to Ordinary Object [[Enumerate]]


Phrases like "a specific order of enumeration for the for-in statement" as seen in 19.1.2.14 and 7.3.21 seem like holdovers from ES5, where the for-in statement's behaviour wasn't alterable by Proxy enumerate traps, nor independently observable via Reflect.enumerate(). It'd perhaps be more correct to say "the [[Enumerate]] internal method of ordinary objects" or something like that.


deferring for ES7 consideration