File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2376,7 +2376,8 @@ added: REPLACEME
2376
2376
* ` type ` {string|undefined} The type of CA certificates that will be returned. Valid values
2377
2377
are ` "default" ` , ` "system" ` , ` "bundled" ` and ` "extra" ` .
2378
2378
** Default:** ` "default" ` .
2379
- * Returns: {string\[ ] }
2379
+ * Returns: {string\[ ] } An array of PEM-encoded certificates. The array may contain duplicates
2380
+ if the same certificate is repeatedly stored in multiple sources.
2380
2381
2381
2382
Returns an array containing the CA certificates from various sources, depending on ` type ` :
2382
2383
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ using v8::ArrayBufferView;
48
48
using v8::Boolean ;
49
49
using v8::Context;
50
50
using v8::DontDelete;
51
+ using v8::EscapableHandleScope;
51
52
using v8::Exception;
52
53
using v8::External;
53
54
using v8::FunctionCallbackInfo;
@@ -818,7 +819,7 @@ void GetBundledRootCertificates(const FunctionCallbackInfo<Value>& args) {
818
819
MaybeLocal<Array> X509sToArrayOfStrings (Environment* env,
819
820
const std::vector<X509*>& certs) {
820
821
ClearErrorOnReturn clear_error_on_return;
821
- v8:: EscapableHandleScope scope (env->isolate ());
822
+ EscapableHandleScope scope (env->isolate ());
822
823
823
824
LocalVector<Value> result (env->isolate (), certs.size ());
824
825
for (size_t i = 0 ; i < certs.size (); ++i) {
You can’t perform that action at this time.
0 commit comments