()
| 390 | } |
| 391 | |
| 392 | toLegacyObject() { |
| 393 | // TODO(tniessen): do not depend on translatePeerCertificate here, return |
| 394 | // the correct legacy representation from the binding |
| 395 | lazyTranslatePeerCertificate ??= |
| 396 | require('internal/tls/common').translatePeerCertificate; |
| 397 | return lazyTranslatePeerCertificate(this[kHandle].toLegacy()); |
| 398 | } |
| 399 | } |
| 400 | |
| 401 | InternalX509Certificate.prototype.constructor = X509Certificate; |
no test coverage detected