Skip to content

Removal of Object type-check from GetIterator() algorithm #746

Open
@caitp

Description

@caitp

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueneeds consensusThis needs committee consensus before it can be eligible to be merged.needs specification textThe proposal should specify ecmarkup changes that can easily merge into tc39/ecma262/spec.html.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions