2222'use strict' ;
2323
2424const {
25+ ArrayIsArray,
2526 ObjectCreate,
2627} = primordials ;
2728
@@ -105,7 +106,7 @@ exports.createSecureContext = function createSecureContext(options) {
105106 // Add CA before the cert to be able to load cert's issuer in C++ code.
106107 const { ca } = options ;
107108 if ( ca ) {
108- if ( Array . isArray ( ca ) ) {
109+ if ( ArrayIsArray ( ca ) ) {
109110 for ( i = 0 ; i < ca . length ; ++ i ) {
110111 val = ca [ i ] ;
111112 validateKeyOrCertOption ( 'ca' , val ) ;
@@ -121,7 +122,7 @@ exports.createSecureContext = function createSecureContext(options) {
121122
122123 const { cert } = options ;
123124 if ( cert ) {
124- if ( Array . isArray ( cert ) ) {
125+ if ( ArrayIsArray ( cert ) ) {
125126 for ( i = 0 ; i < cert . length ; ++ i ) {
126127 val = cert [ i ] ;
127128 validateKeyOrCertOption ( 'cert' , val ) ;
@@ -140,7 +141,7 @@ exports.createSecureContext = function createSecureContext(options) {
140141 const key = options . key ;
141142 const passphrase = options . passphrase ;
142143 if ( key ) {
143- if ( Array . isArray ( key ) ) {
144+ if ( ArrayIsArray ( key ) ) {
144145 for ( i = 0 ; i < key . length ; ++ i ) {
145146 val = key [ i ] ;
146147 // eslint-disable-next-line eqeqeq
@@ -240,7 +241,7 @@ exports.createSecureContext = function createSecureContext(options) {
240241 }
241242
242243 if ( options . crl ) {
243- if ( Array . isArray ( options . crl ) ) {
244+ if ( ArrayIsArray ( options . crl ) ) {
244245 for ( i = 0 ; i < options . crl . length ; i ++ ) {
245246 c . context . addCRL ( options . crl [ i ] ) ;
246247 }
@@ -257,7 +258,7 @@ exports.createSecureContext = function createSecureContext(options) {
257258 if ( ! toBuf )
258259 toBuf = require ( 'internal/crypto/util' ) . toBuf ;
259260
260- if ( Array . isArray ( options . pfx ) ) {
261+ if ( ArrayIsArray ( options . pfx ) ) {
261262 for ( i = 0 ; i < options . pfx . length ; i ++ ) {
262263 const pfx = options . pfx [ i ] ;
263264 const raw = pfx . buf ? pfx . buf : pfx ;
0 commit comments