22
22
'use strict' ;
23
23
24
24
const {
25
+ ArrayIsArray,
25
26
ObjectCreate,
26
27
} = primordials ;
27
28
@@ -105,7 +106,7 @@ exports.createSecureContext = function createSecureContext(options) {
105
106
// Add CA before the cert to be able to load cert's issuer in C++ code.
106
107
const { ca } = options ;
107
108
if ( ca ) {
108
- if ( Array . isArray ( ca ) ) {
109
+ if ( ArrayIsArray ( ca ) ) {
109
110
for ( i = 0 ; i < ca . length ; ++ i ) {
110
111
val = ca [ i ] ;
111
112
validateKeyOrCertOption ( 'ca' , val ) ;
@@ -121,7 +122,7 @@ exports.createSecureContext = function createSecureContext(options) {
121
122
122
123
const { cert } = options ;
123
124
if ( cert ) {
124
- if ( Array . isArray ( cert ) ) {
125
+ if ( ArrayIsArray ( cert ) ) {
125
126
for ( i = 0 ; i < cert . length ; ++ i ) {
126
127
val = cert [ i ] ;
127
128
validateKeyOrCertOption ( 'cert' , val ) ;
@@ -140,7 +141,7 @@ exports.createSecureContext = function createSecureContext(options) {
140
141
const key = options . key ;
141
142
const passphrase = options . passphrase ;
142
143
if ( key ) {
143
- if ( Array . isArray ( key ) ) {
144
+ if ( ArrayIsArray ( key ) ) {
144
145
for ( i = 0 ; i < key . length ; ++ i ) {
145
146
val = key [ i ] ;
146
147
// eslint-disable-next-line eqeqeq
@@ -240,7 +241,7 @@ exports.createSecureContext = function createSecureContext(options) {
240
241
}
241
242
242
243
if ( options . crl ) {
243
- if ( Array . isArray ( options . crl ) ) {
244
+ if ( ArrayIsArray ( options . crl ) ) {
244
245
for ( i = 0 ; i < options . crl . length ; i ++ ) {
245
246
c . context . addCRL ( options . crl [ i ] ) ;
246
247
}
@@ -257,7 +258,7 @@ exports.createSecureContext = function createSecureContext(options) {
257
258
if ( ! toBuf )
258
259
toBuf = require ( 'internal/crypto/util' ) . toBuf ;
259
260
260
- if ( Array . isArray ( options . pfx ) ) {
261
+ if ( ArrayIsArray ( options . pfx ) ) {
261
262
for ( i = 0 ; i < options . pfx . length ; i ++ ) {
262
263
const pfx = options . pfx [ i ] ;
263
264
const raw = pfx . buf ? pfx . buf : pfx ;
0 commit comments