diff --git a/src/node/internal/crypto_keys.ts b/src/node/internal/crypto_keys.ts index 3a308b884ab..671e098b7b7 100644 --- a/src/node/internal/crypto_keys.ts +++ b/src/node/internal/crypto_keys.ts @@ -158,6 +158,10 @@ export abstract class KeyObject { } abstract get type() : KeyObjectType; + + get [Symbol.toStringTag]() { + return "KeyObject" + } } abstract class AsymmetricKeyObject extends KeyObject {