« Bugzilla Issues Index

#1652 — Update algorithm to use IteratorNext

Replace steps 7a-7c of "Object.getOwnPropertyNames(O)" with a single call to IteratorNext() from and an additional ReturnIfAbrupt() to ensure uniform access on iterators.

> a. Let next be the result of Invoke(keys, "next").
> b. ReturnIfAbrupt(next).
> c. If Type(next) is not Object, then throw a TypeError exception.

> a. Let next be the result of IteratorNext(keys).
> b. ReturnIfAbrupt(next).

fixed in rev17 editor's draft

fixed in rev17, August 23, 2013 draft