tc39/ecma262

Removal of Object type-check from GetIterator() algorithm

Open

#746 opened on 2016年12月6日

GitHub で見る
 (13 comments) (0 reactions) (0 assignees)HTML (1,409 forks)batch import
good first issueneeds consensusneeds specification text

Repository metrics

Stars
 (15,626 stars)
PR merge metrics
 (平均マージ 92d 19h) (30d で 17 merged PRs)

説明

The If Type(iterator) is not Object, throw a TypeError exception. step is generally not implemented by engines, see https://jsfiddle.net/gj3uaw1t/ for an example. V8 does implement this step for yield*, but not other uses of GetIterator().

It would be cool if we could remove this from the spec and have common behaviour among implementations (it seems a recent version of SpiderMonkey has added the typecheck, breaking compatibility between FF and Chrome/Safari in this very unlikely situation).

コントリビューターガイド