We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6688569 commit 2d9b624Copy full SHA for 2d9b624
lib/_tls_common.js
@@ -217,7 +217,8 @@ exports.createSecureContext = function createSecureContext(options) {
217
// which leads to the crash later on.
218
if (key) {
219
if (ArrayIsArray(key)) {
220
- for (const val of key) {
+ for (let i = 0; i < key.length; ++i) {
221
+ const val = key[i];
222
// eslint-disable-next-line eqeqeq
223
const pem = (val != undefined && val.pem !== undefined ? val.pem : val);
224
setKey(c.context, pem, val.passphrase || passphrase);
0 commit comments