Index: chrome/renderer/resources/extensions/enterprise_platform_keys/key_pair.js |
diff --git a/chrome/renderer/resources/extensions/enterprise_platform_keys/key_pair.js b/chrome/renderer/resources/extensions/enterprise_platform_keys/key_pair.js |
index 1cab18f8487051fc6cbc8e4829029473b54581a7..d31ffaf5a37b7f35548a8d27e3db0669d73c6e49 100644 |
--- a/chrome/renderer/resources/extensions/enterprise_platform_keys/key_pair.js |
+++ b/chrome/renderer/resources/extensions/enterprise_platform_keys/key_pair.js |
@@ -17,7 +17,7 @@ var KeyUsage = keyModule.KeyUsage; |
* @param {KeyUsage[]} usages The allowed key usages. |
* @constructor |
*/ |
-var KeyPairImpl = function(publicKeySpki, algorithm, usages) { |
+function KeyPairImpl(publicKeySpki, algorithm, usages) { |
this.publicKey = new Key(KeyType.public, |
publicKeySpki, |
algorithm, |
@@ -28,7 +28,8 @@ var KeyPairImpl = function(publicKeySpki, algorithm, usages) { |
algorithm, |
intersect([KeyUsage.sign], usages), |
false /* not extractable */); |
-}; |
+} |
+$Object.setPrototypeOf(KeyPairImpl.prototype, null); |
function KeyPair() { |
privates(KeyPair).constructPrivate(this, arguments); |