Skip to content

Commit

Permalink
tls: improve debugging assertion
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
addaleax committed Sep 3, 2018
1 parent 78067c5 commit 187732e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/_tls_wrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ function onhandshakestart(now) {
debug('onhandshakestart');

const { lastHandshakeTime } = this;
assert(now >= lastHandshakeTime);
assert(now >= lastHandshakeTime,
`now (${now}) < lastHandshakeTime (${lastHandshakeTime})`);

this.lastHandshakeTime = now;

Expand Down

0 comments on commit 187732e

Please sign in to comment.