Skip to content

Commit

Permalink
Fixed a regression that caused SyntaxErrors on IE 11
Browse files Browse the repository at this point in the history
The changes made in #1334 incorrectly used an arrow function and as this isn't supported on IE 11 it causes a SyntaxError to be thrown when loading chai.
  • Loading branch information
lnewson authored and keithamus committed Mar 3, 2021
1 parent 8a24666 commit 71245a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/chai/core/assertions.js
Original file line number Diff line number Diff line change
Expand Up @@ -3178,7 +3178,7 @@ module.exports = function (chai, _) {
} else {
if (isDeep) {
this.assert(
list.some(possibility => _.eql(expected, possibility))
list.some(function(possibility) { return _.eql(expected, possibility) })
, 'expected #{this} to deeply equal one of #{exp}'
, 'expected #{this} to deeply equal one of #{exp}'
, list
Expand Down

0 comments on commit 71245a3

Please sign in to comment.