Skip to content

Commit f4b2fbc

Browse files
authored
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
1 parent 6ef2824 commit f4b2fbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/chai/assertion.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module.exports = function (_chai, util) {
6666
flag(this, 'lockSsfi', lockSsfi);
6767
flag(this, 'object', obj);
6868
flag(this, 'message', msg);
69-
flag(this, 'eql', config.deepEqual ?? util.eql);
69+
flag(this, 'eql', config.deepEqual || util.eql);
7070

7171
return util.proxify(this);
7272
}

0 commit comments

Comments
 (0)