Closed bryanforbes closed 7 years ago
The setTimeout function on Edge doesn't seem to guarantee the delay. Load the page below in Edge and you will see the timer fire before the requested delay. This breaks the utils#throttle function.
<!DOCTYPE html>
<html>
<body>
<script>
var counter = 0;
var start = Date.now();
console.log('Start ', start);
var fn = function () {
var end = Date.now();
var diff = end - start;
console.log('End ', end, diff, (diff < 25) ? '<<<<<<<<<<': '');
counter++;
if (counter < 15) {
start = Date.now();
setTimeout(fn, 25);
}
};
setTimeout(fn, 25);
</script>
</body>
</html>
Bug
When running the unit tests on Edge, the following error is raised:
Package Version: master