Skip to content
This repository was archived by the owner on Jan 26, 2022. It is now read-only.
This repository was archived by the owner on Jan 26, 2022. It is now read-only.

Should throw when passed undefined or null  #22

Closed
@bakkot

Description

@bakkot

This was a normative change included as part of this commit, I'm guessing by accident. (That commit does what the Map constructor does, but we explicitly want to do something different.) I think the fix is to change the If _iterable_ is *undefined* or *null*, return _obj_ step to If _iterable_ is *undefined* or *null*, throw a TypeError exception and move it to the first step.

See discussion here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions