question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Set polyfill doesn't work with Array.from in IE11

See original GitHub issue

Hi all, Using the included Set polyfill, I have the following:

const testSet = [...new Set([1, 2, 1])];

In Chrome and Edge (for example), the output is what I expect it to be:

screen shot 2017-04-04 at 1 38 10 pm

But in IE11 (where the polyfill kicks-in), this is what I’m shown:

screen shot 2017-04-04 at 1 38 53 pm

It looks like it’s creating an object within the array. I’ve run the code directly from your source as well and am getting the same results. Any idea what’s going on?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:13 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
triblondoncommented, Apr 24, 2017

When a PR is merged, it’s assigned to a release, and then we release periodically. You’ll get at least 7 days notice because we push to qa.polyfill.io a week ahead of cdn.polyfill.io, and announce on twitter.

0reactions
zslabscommented, Apr 24, 2017

Thanks @triblondon ! It looks like the releases may not necessarily be on a defined schedule – any idea when something like that may land in the wild?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Alternative or polyfill for Array.from on the Internet Explorer
I am getting error after adding your code and checked in Internet Explorer 11. This site overrides Array.from() with an implementation that doesn't...
Read more >
Array.from fails with Set on IE11 · Issue #120 - GitHub
This appears to be an issue with the order in which polyfills are being loaded: Array.from first captures the Set.size property descriptor using ......
Read more >
[Solved]-babel: polyfill Array.from for IE11 support-Reactjs
Coding example for the question babel: polyfill Array.from for IE11 ... React - Babel Polyfill doesn't prevent exception on Set or Weakmap for...
Read more >
Babel: Polyfill Array.From For Ie11 Support - ADocLib
A Node.js commandline application for analysing your JavaScript file and generating a https://polyfill.io URL based on all the features that are being used....
Read more >
Array.prototype.some() - JavaScript - MDN Web Docs - Mozilla
The some() method tests whether at least one element in the array passes the test implemented by the provided function. It returns true...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found