Skip to content

Commit

Permalink
fix: removes ?? for node compat (#1574)
Browse files Browse the repository at this point in the history
We shipped syntax which is beyond our `engine` constraint. `??` is
available in node 14 but 4.x is node 4 and above, while 5.x is node 12
and above.

This just dumbs it back down to `||` for now at least.

Fixes #1573
  • Loading branch information
43081j authored Jan 12, 2024
1 parent 6ef2824 commit f4b2fbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/chai/assertion.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ module.exports = function (_chai, util) {
flag(this, 'lockSsfi', lockSsfi);
flag(this, 'object', obj);
flag(this, 'message', msg);
flag(this, 'eql', config.deepEqual ?? util.eql);
flag(this, 'eql', config.deepEqual || util.eql);

return util.proxify(this);
}
Expand Down

0 comments on commit f4b2fbc

Please sign in to comment.