Skip to content

Commit

Permalink
fix: removes ?? for node compat (#1576)
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.
  • Loading branch information
43081j authored Jan 12, 2024
1 parent 082c7e2 commit 2523cd7
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 @@ -54,7 +54,7 @@ export function Assertion (obj, msg, ssfi, lockSsfi) {
util.flag(this, 'lockSsfi', lockSsfi);
util.flag(this, 'object', obj);
util.flag(this, 'message', msg);
util.flag(this, 'eql', config.deepEqual ?? util.eql);
util.flag(this, 'eql', config.deepEqual || util.eql);

return util.proxify(this);
}
Expand Down

0 comments on commit 2523cd7

Please sign in to comment.