MCPcopy Create free account
hub / github.com/nodejs/node / toLegacyObject

Method toLegacyObject

lib/internal/crypto/x509.js:392–398  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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
401InternalX509Certificate.prototype.constructor = X509Certificate;

Callers 2

Calls 1

requireFunction · 0.50

Tested by

no test coverage detected