archives

« Bugzilla Issues Index

#1652 — 15.2.3.4: Update algorithm to use IteratorNext


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

From:
> 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.

To:
> 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