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 <apapirovski@mac.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
addaleax authored and targos committed Sep 6, 2018
1 parent f493861 commit 071d19a
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 071d19a

Please sign in to comment.