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.

PropertyMixer unsupported Array methods break Internet Explorer 11

See original GitHub issue
Description of the problem

Thank you @c-morten for implementing additive animations! We hope to use it in the future.

Unfortunately it has broken animation for Internet Explorer 11, because Array.prototype.fill and Array.prototype.copyWithin were used in the PropertyMixer. If this is a deliberate decision to drop support for Internet Explorer 11 without polyfills (in src, for some files in examples you need polyfills anyway), it would be nice to mention this in the migration guides, so updating doesn’t unknowingly break Internet Explorer 11 in production.

Three.js version
  • Dev
  • r116
Browser
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
OS
  • All of them
  • Windows
  • macOS
  • Linux
  • Android
  • iOS
Hardware Requirements (graphics card, VR Device, …)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:17 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
c-mortencommented, May 4, 2020

Here’s the PR with the fix: https://github.com/mrdoob/three.js/pull/19297

2reactions
c-mortencommented, May 4, 2020

It would be easy enough to replace the calls to fill and copyWithin with a forloop and just use set, which appears to be supported across the board. I can submit a PR with that change.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fixing JavaScript Array functions in Internet Explorer (indexOf ...
There are a number of workarounds here and there, but I'd like to fold a proper, canonical set of implementations into our site...
Read more >
JavaScript Arrays - W3Schools Tryit Editor
The Array.from() method returns an array from any iterable object. ... The Array.from() method is not supported in Internet Explorer 11 (or earlier)....
Read more >
Full text of "Adobe Director 11.5" - Internet Archive
These function names exposed through the Xtras are not supported in Unicode. ... You can view the Explorer panel in the Dictionary view...
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