| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a408ba6 commit a3abba0
6 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | ||
| 3 | - require('internal/util').assertCrypto(exports); | ||
| 3 | + require('internal/util').assertCrypto(); | ||
| 4 | 4 | ||
| 5 | 5 | const assert = require('assert'); | |
| 6 | 6 | const EventEmitter = require('events'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | ||
| 3 | - require('internal/util').assertCrypto(exports); | ||
| 3 | + require('internal/util').assertCrypto(); | ||
| 4 | 4 | ||
| 5 | 5 | const assert = require('assert'); | |
| 6 | 6 | const crypto = require('crypto'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,7 +4,7 @@ | |||
| 4 | 4 | 'use strict'; | |
| 5 | 5 | ||
| 6 | 6 | const internalUtil = require('internal/util'); | |
| 7 | - internalUtil.assertCrypto(exports); | ||
| 7 | + internalUtil.assertCrypto(); | ||
| 8 | 8 | ||
| 9 | 9 | exports.DEFAULT_ENCODING = 'buffer'; | |
| 10 | 10 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | ||
| 3 | - require('internal/util').assertCrypto(exports); | ||
| 3 | + require('internal/util').assertCrypto(); | ||
| 4 | 4 | ||
| 5 | 5 | const tls = require('tls'); | |
| 6 | 6 | const url = require('url'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -97,7 +97,7 @@ exports.objectToString = function objectToString(o) { | |||
| 97 | 97 | }; | |
| 98 | 98 | ||
| 99 | 99 | const noCrypto = !process.versions.openssl; | |
| 100 | - exports.assertCrypto = function(exports) { | ||
| 100 | + exports.assertCrypto = function() { | ||
| 101 | 101 | if (noCrypto) | |
| 102 | 102 | throw new Error('Node.js is not compiled with openssl crypto support'); | |
| 103 | 103 | }; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | ||
| 3 | 3 | const internalUtil = require('internal/util'); | |
| 4 | - internalUtil.assertCrypto(exports); | ||
| 4 | + internalUtil.assertCrypto(); | ||
| 5 | 5 | ||
| 6 | 6 | const net = require('net'); | |
| 7 | 7 | const url = require('url'); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments