tc39/ecma262

Removal of Object type-check from GetIterator() algorithm

開放

#746 建立於 2016年12月6日

 (13 則留言) (0 個反應) (0 位負責人)HTML (1,409 個分叉)batch import
good first issueneeds consensusneeds specification text

倉庫指標

星標
 (15,626 顆星)
PR 合併指標
 (平均合併 92天 19小時) (30 天內合併 17 個 PR)

描述

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).

貢獻者指南