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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions