[Pkg-javascript-commits] [node-diffie-hellman] 70/88: avoid void operator

Bastien Roucariès rouca at moszumanska.debian.org
Thu May 4 10:19:18 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-diffie-hellman.

commit 3c121b547d1843b3f054bdb48e5d2bbc7a49f59c
Author: Calvin Metcalf <calvin.metcalf at gmail.com>
Date:   Mon Oct 26 21:31:11 2015 -0400

    avoid void operator
---
 lib/dh.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/dh.js b/lib/dh.js
index b726274..0650f65 100644
--- a/lib/dh.js
+++ b/lib/dh.js
@@ -87,9 +87,9 @@ function DH(prime, generator, malleable) {
   this.__prime = new BN(prime);
   this._prime = BN.mont(this.__prime);
   this._primeLen = prime.length;
-  this._pub = void 0;
-  this._priv = void 0;
-  this._primeCode = void 0;
+  this._pub = undefined;
+  this._priv = undefined;
+  this._primeCode = undefined;
   if (malleable) {
     this.setPublicKey = setPublicKey;
     this.setPrivateKey = setPrivateKey;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-diffie-hellman.git



More information about the Pkg-javascript-commits mailing list