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

Merged
merged 1 commit into from Nov 27, 2015

Projects

None yet

2 participants

@jokeyrhyme
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
Member

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

@jokeyrhyme jokeyrhyme feature-detect for ES6 Map, Set, WeakMap and WeakSet
88edf3e
@jokeyrhyme
Contributor

@patrickkettner all rebased and theoretically good to go :)

@patrickkettner patrickkettner merged commit 17d26ca into Modernizr:master Nov 27, 2015

2 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@patrickkettner
Member

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

@jokeyrhyme
Contributor

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

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