diff --git a/lib/internal/crypto/keys.js b/lib/internal/crypto/keys.js index bb7dd7dbd0d1eb..3304615f4c110a 100644 --- a/lib/internal/crypto/keys.js +++ b/lib/internal/crypto/keys.js @@ -750,6 +750,15 @@ class InternalCryptoKey { this[kExtractable] = extractable; } } + +ObjectDefineProperties(CryptoKey.prototype, { + [SymbolToStringTag]: { + __proto__: null, + configurable: true, + value: 'CryptoKey', + }, +}); + InternalCryptoKey.prototype.constructor = CryptoKey; ObjectSetPrototypeOf(InternalCryptoKey.prototype, CryptoKey.prototype);