archives

« Bugzilla Issues Index

#2828 — Unnecessary call to ToObject in CreateArrayIterator


22.1.5.1 CreateArrayIterator Abstract Operation

All callers to CreateArrayIterator already call ToObject so the extra ToObject is not needed.


There is a similar issue in 21.1.5.1 CreateStringIterator. The first two steps can be changed to `Assert: Type(string) is String.`.


fixed in rev26 editor's draft


fixed in rev26