Skip to content

Commit

Permalink
Merge pull request #1359 from le0nik/fix-tostring-ie
Browse files Browse the repository at this point in the history
Fix "TypeError: Invalid calling object" error in IE11 (Fixes #1358)
  • Loading branch information
mweststrate authored Feb 28, 2018
2 parents 8f7f4a3 + f8ab36c commit 2ae6107
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils/eq.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ function eq(a, b, aStack?, bStack?) {
return deepEq(a, b, aStack, bStack)
}

var toString = Object.prototype.toString

// Internal recursive comparison function for `isEqual`.
function deepEq(a, b, aStack?, bStack?) {
// Unwrap any wrapped objects.
Expand Down

0 comments on commit 2ae6107

Please sign in to comment.