Skip to content

Bug in Array.from() #1576

Description

@denis-atsuta

The bug occurs when converting the Map class to an array.

const map = new Map().set(1, 2);
const array = Array.from(map, ([v,k]) => ({k,v}));

Error: attempt to perform arithmetic on a boolean value (local 'i')

Playground

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions