MCPcopy Create free account
hub / github.com/nodejs/node / [kInspect]

Method [kInspect]

lib/internal/crypto/keys.js:1052–1067  ·  view source on GitHub ↗
(depth, options)

Source from the content-addressed store, hash-verified

1050 }
1051
1052 [kInspect](depth, options) {
1053 if (depth < 0)
1054 return this;
1055
1056 const opts = {
1057 ...options,
1058 depth: options.depth == null ? null : options.depth - 1,
1059 };
1060
1061 return `CryptoKey ${inspect({
1062 type: getCryptoKeyType(this),
1063 extractable: getCryptoKeyExtractable(this),
1064 algorithm: cloneAlgorithm(getCryptoKeyAlgorithm(this)),
1065 usages: ArrayPrototypeSlice(getCryptoKeyUsages(this), 0),
1066 }, opts)}`;
1067 }
1068
1069 get type() {
1070 return getCryptoKeyType(this);

Callers

nothing calls this directly

Calls 6

getCryptoKeyTypeFunction · 0.85
getCryptoKeyExtractableFunction · 0.85
cloneAlgorithmFunction · 0.85
getCryptoKeyAlgorithmFunction · 0.85
getCryptoKeyUsagesFunction · 0.85
inspectFunction · 0.50

Tested by

no test coverage detected