summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/_tls_legacy.js2
-rw-r--r--lib/_tls_wrap.js2
-rw-r--r--lib/crypto.js2
-rw-r--r--lib/https.js2
-rw-r--r--lib/internal/util.js2
-rw-r--r--lib/tls.js2
6 files changed, 6 insertions, 6 deletions
diff --git a/lib/_tls_legacy.js b/lib/_tls_legacy.js
index f974b0cfc0..e765b2507e 100644
--- a/lib/_tls_legacy.js
+++ b/lib/_tls_legacy.js
@@ -1,6 +1,6 @@
'use strict';
-require('internal/util').assertCrypto(exports);
+require('internal/util').assertCrypto();
const assert = require('assert');
const EventEmitter = require('events');
diff --git a/lib/_tls_wrap.js b/lib/_tls_wrap.js
index 434384cec8..721cdde142 100644
--- a/lib/_tls_wrap.js
+++ b/lib/_tls_wrap.js
@@ -1,6 +1,6 @@
'use strict';
-require('internal/util').assertCrypto(exports);
+require('internal/util').assertCrypto();
const assert = require('assert');
const crypto = require('crypto');
diff --git a/lib/crypto.js b/lib/crypto.js
index c33728ac88..9180ce70dc 100644
--- a/lib/crypto.js
+++ b/lib/crypto.js
@@ -4,7 +4,7 @@
'use strict';
const internalUtil = require('internal/util');
-internalUtil.assertCrypto(exports);
+internalUtil.assertCrypto();
exports.DEFAULT_ENCODING = 'buffer';
diff --git a/lib/https.js b/lib/https.js
index aed92779cc..e59e7dfcb6 100644
--- a/lib/https.js
+++ b/lib/https.js
@@ -1,6 +1,6 @@
'use strict';
-require('internal/util').assertCrypto(exports);
+require('internal/util').assertCrypto();
const tls = require('tls');
const url = require('url');
diff --git a/lib/internal/util.js b/lib/internal/util.js
index 5384d59fc5..42a0922d30 100644
--- a/lib/internal/util.js
+++ b/lib/internal/util.js
@@ -97,7 +97,7 @@ exports.objectToString = function objectToString(o) {
};
const noCrypto = !process.versions.openssl;
-exports.assertCrypto = function(exports) {
+exports.assertCrypto = function() {
if (noCrypto)
throw new Error('Node.js is not compiled with openssl crypto support');
};
diff --git a/lib/tls.js b/lib/tls.js
index 56da56029f..bb4719d9b0 100644
--- a/lib/tls.js
+++ b/lib/tls.js
@@ -1,7 +1,7 @@
'use strict';
const internalUtil = require('internal/util');
-internalUtil.assertCrypto(exports);
+internalUtil.assertCrypto();
const net = require('net');
const url = require('url');