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 5, 2018
1 parent 2025eaf commit 696f7a5
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 696f7a5

Please sign in to comment.