Skip to content

Commit 696f7a5

Browse files
addaleaxtargos
authored andcommitted
tls: improve debugging assertion
Refs: #22618 PR-URL: #22625 Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent 2025eaf commit 696f7a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/_tls_wrap.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ function onhandshakestart(now) {
6565
debug('onhandshakestart');
6666

6767
const { lastHandshakeTime } = this;
68-
assert(now >= lastHandshakeTime);
68+
assert(now >= lastHandshakeTime,
69+
`now (${now}) < lastHandshakeTime (${lastHandshakeTime})`);
6970

7071
this.lastHandshakeTime = now;
7172

0 commit comments

Comments
 (0)