Skip to content

IE11 doesn't support Map(iterable) constructor#874

Merged
Elchi3 merged 2 commits into
mdn:masterfrom
Jeff-Mott-OR:master
Jan 24, 2018
Merged

IE11 doesn't support Map(iterable) constructor#874
Elchi3 merged 2 commits into
mdn:masterfrom
Jeff-Mott-OR:master

Conversation

@Jeff-Mott-OR

Copy link
Copy Markdown
Contributor

The data here claimed IE11 has partial support for Map(iterable) constructor when the iterable is an array, but kangx compat tables and repeatable tests contradict that claim.

Test to verify: https://jsfiddle.net/rbew03rk/1/

The data here claimed IE11 has partial support for Map(iterable) constructor when the iterable is an array, but kangx compat tables and repeatable tests contradict that claim.

Test to verify: https://jsfiddle.net/rbew03rk/1/
@pmw57

pmw57 commented Jan 22, 2018

Copy link
Copy Markdown

This is related to a previous issue #691 where IE11 seemed to support accepting key/value pairs as a constructor. This doesn't seem to be the case anymore.

@teoli2003 teoli2003 added the data:js Compat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript label Jan 22, 2018
@Elchi3

Elchi3 commented Jan 23, 2018

Copy link
Copy Markdown
Member

So, this is then just unsupported completely? In that case the PR should be:

"ie": {
  "version_added": false
}

and not removing the ie entirely.

@Elchi3 Elchi3 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@Elchi3 Elchi3 merged commit d2fb0fc into mdn:master Jan 24, 2018
@pmw57

pmw57 commented Jan 24, 2018

Copy link
Copy Markdown

After changing Yes to No, the note saying: "1. Only supports arrays of key/value pairs, such as new Map([ ['foo', 'bar'] ])." must also be removed too.

Craga89 added a commit to Craga89/popmotion that referenced this pull request Sep 20, 2018
As [described here](mdn/browser-compat-data#874), IE11 does not support passing in an array of tuples to the `Map` constructor. Changed this to use a generic constructor and `set` call instead.
mattgperry pushed a commit to Popmotion/popmotion that referenced this pull request Sep 21, 2018
* fix(IE11): Convert Map constructor to a set call

As [described here](mdn/browser-compat-data#874), IE11 does not support passing in an array of tuples to the `Map` constructor. Changed this to use a generic constructor and `set` call instead.

* Update default-transitions.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:js Compat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants