tc39 / test262

Official ECMAScript Conformance Test Suite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect groupBy tests with iterator throwing

syg opened this issue · comments

built-ins/{Map,Object}/groupBy/iterator-next-throws.js is wrong by my reading. throwingIterator doesn't have a [Symbol.iterator], making step 4 in GetIterator in GroupBy throw a TypeError. The test incorrectly asserts the next() function is called and throws a Test262Error.

cc @ljharb

Your reading seems correct; I'll put up a PR to correct them.