Skip to content

new Map() is broken #526

Description

@loveencounterflow

ES6 maps do not seem to work as described in https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map; specifically, var d = new Map(); d[ [ 1, 2, ] ] = 42; will cause a key '1,2' to be created, and allows to retrieve the value with d[ '1,2' ]. Moreover, d.forEach will not iterate, d.size will always be 0, d.has(...) always returns false, and both d.keys() and d.values() will always return an empty object {}, which is wrong on more than one level.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions