@@ -272,18 +272,18 @@ void ThrowCryptoError(Environment* env,
272272 Local<Value> exception_v = Exception::Error (message);
273273 CHECK (!exception_v.IsEmpty ());
274274 Local<Object> exception = exception_v.As <Object>();
275- Local<Array> errorStack = Array::New (env->isolate ());
275+ Local<Array> error_stack = Array::New (env->isolate ());
276276
277277 ERR_STATE *es = ERR_get_state ();
278- // Build the errorStack array to be added to openSSLErrorStack property.
278+ // Build the error_stack array to be added to openSSLErrorStack property.
279279 for (unsigned int i = 0 ; es->bottom != es->top
280280 && (es->err_flags [es->top ] & ERR_FLAG_MARK) == 0 ; i++) {
281281 unsigned long err_buf = es->err_buffer [es->top ]; // NOLINT(runtime/int)
282282 // Only add error string if there is valid err_buffer.
283283 if (err_buf) {
284284 char tmpStr[256 ] = { };
285285 ERR_error_string_n (err_buf, tmpStr, sizeof (tmpStr));
286- errorStack ->Set (env->context (), i,
286+ error_stack ->Set (env->context (), i,
287287 String::NewFromUtf8 (env->isolate (), tmpStr,
288288 v8::NewStringType::kNormal )
289289 .ToLocalChecked ()).FromJust ();
@@ -297,7 +297,7 @@ void ThrowCryptoError(Environment* env,
297297 // 'error:0906700D:PEM routines:PEM_ASN1_read_bio:ASN1 lib',
298298 // 'error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error'
299299 // ]
300- exception->Set (env->openssl_error_stack (), errorStack );
300+ exception->Set (env->openssl_error_stack (), error_stack );
301301 env->isolate ()->ThrowException (exception);
302302}
303303
0 commit comments