Skip to content

Commit 71245a3

Browse files
lnewsonkeithamus
authored andcommitted
Fixed a regression that caused SyntaxErrors on IE 11
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.
1 parent 8a24666 commit 71245a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/chai/core/assertions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3178,7 +3178,7 @@ module.exports = function (chai, _) {
31783178
} else {
31793179
if (isDeep) {
31803180
this.assert(
3181-
list.some(possibility => _.eql(expected, possibility))
3181+
list.some(function(possibility) { return _.eql(expected, possibility) })
31823182
, 'expected #{this} to deeply equal one of #{exp}'
31833183
, 'expected #{this} to deeply equal one of #{exp}'
31843184
, list

0 commit comments

Comments
 (0)