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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy