Skip to content

Map#set polyfill is not correct #10

@brunoscopelliti

Description

@brunoscopelliti

Ciao Andrea,

The way Map#set is polyfilled doesn't seem correct:

set: function set(value) {
  var i = k.indexOf(value);
  v[i < 0 ? k.push(value) - 1 : i] = value;
}

https://github.com/WebReflection/domdiff/blob/master/index.js#L79-L82

I know that you've published https://github.com/WebReflection/poorlyfills, where it's implemented correctly. Probably this is just a disalignment.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions