mirror of
https://github.com/chaijs/chai
synced 2024-11-12 23:07:06 +00:00
fix: removes ??
for node compat (#1574)
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
This commit is contained in:
parent
6ef28248b9
commit
f4b2fbc9dc
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue