Skip to content

feature-detect for ES6 Map, Set, WeakMap and WeakSet#1396

Merged
patrickkettner merged 1 commit into
Modernizr:masterfrom
jokeyrhyme:es6collections
Nov 27, 2015
Merged

feature-detect for ES6 Map, Set, WeakMap and WeakSet#1396
patrickkettner merged 1 commit into
Modernizr:masterfrom
jokeyrhyme:es6collections

Conversation

@jokeyrhyme

Copy link
Copy Markdown
Contributor

This feature detect shows whether the new collections constructors for ES6 are supported: Map, Set, WeakMap and WeakSet.

Chrome implements all 4, but hides 2 behind a flag. Firefox implements 3.

Polymer requires WeakMap, so detecting this may allow us to skip loading the poly-fill in upcoming browsers.

Part of #1170.

@patrickkettner

Copy link
Copy Markdown
Member

@jokeyrhyme somehow I missed this, do you wanna rebase off of master?

@jokeyrhyme

Copy link
Copy Markdown
Contributor Author

@patrickkettner all rebased and theoretically good to go :)

patrickkettner added a commit that referenced this pull request Nov 27, 2015
feature-detect for ES6 Map, Set, WeakMap and WeakSet
@patrickkettner patrickkettner merged commit 17d26ca into Modernizr:master Nov 27, 2015
@patrickkettner

Copy link
Copy Markdown
Member

you're a really cool dude, you know that?

@jokeyrhyme

Copy link
Copy Markdown
Contributor Author

@patrickkettner thanks, that's really life-affirming of you. :) I think that you are also a really cool dude. :)

@jokeyrhyme jokeyrhyme deleted the es6collections branch November 27, 2015 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants