Skip to content
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.

Commit

Permalink
fix: polyfill Date.now to restore IE compat
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickkettner authored and dignifiedquire committed Oct 5, 2016
1 parent 7319c81 commit 246f25a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ var includes = function (collection, element, startIndex) {
}
}

// Date.now polyfill for IE <= 8
if (!Date.now) {
Date.now = function () {
return +new Date()
}
}

var formatError = function (error) {
var stack = error.stack
var message = error.message
Expand Down

0 comments on commit 246f25a

Please sign in to comment.