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:
James Garbutt 2024-01-12 14:13:18 +00:00 committed by GitHub
parent 6ef28248b9
commit f4b2fbc9dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}