mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-26 17:46:26 +03:00
82357486a6
A bug in our Promise polyfill caused issues with the recently-added AbortableOperation class on IE11. Since external polyfills for this are smaller, it is easier to remove ours in favor of a third-party polyfill. Applications that wish to support IE11 must now load this additional polyfill. We are using the "es6-promise-polyfill" module from npm, but any compliant polyfill should suffice. One feature our own polyfill offered was the ability to flush all Promises, which allowed us to write synchronous unit tests that simulated async processes. To get this ability back, we are now using the "promise-mock" module in our tests. Getting "promise-mock" to load correctly involved switching from "requirejs" to "cajon", which builds on requirejs and supports AMD modules more directly. Closes #1260 Change-Id: I5de48e88a910736ae5c1897a7a509bc5641acb70