Skip to content

Commit 2523cd7

Browse files
authored
fix: removes ?? for node compat (#1576)
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.
1 parent 082c7e2 commit 2523cd7

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
@@ -54,7 +54,7 @@ export function Assertion (obj, msg, ssfi, lockSsfi) {
5454
util.flag(this, 'lockSsfi', lockSsfi);
5555
util.flag(this, 'object', obj);
5656
util.flag(this, 'message', msg);
57-
util.flag(this, 'eql', config.deepEqual ?? util.eql);
57+
util.flag(this, 'eql', config.deepEqual || util.eql);
5858

5959
return util.proxify(this);
6060
}

0 commit comments

Comments
 (0)