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 dc06f16498ddb53cc8a090af60275f7a59758d72..1cab18f8487051fc6cbc8e4829029473b54581a7 100644 |
--- a/chrome/renderer/resources/extensions/enterprise_platform_keys/key_pair.js |
+++ b/chrome/renderer/resources/extensions/enterprise_platform_keys/key_pair.js |
@@ -30,6 +30,14 @@ var KeyPairImpl = function(publicKeySpki, algorithm, usages) { |
false /* not extractable */); |
}; |
-exports.KeyPair = utils.expose('KeyPair', |
- KeyPairImpl, |
- {readonly:['publicKey', 'privateKey']}); |
+function KeyPair() { |
+ privates(KeyPair).constructPrivate(this, arguments); |
+} |
+utils.expose(KeyPair, KeyPairImpl, { |
+ readonly: [ |
+ 'publicKey', |
+ 'privateKey', |
+ ], |
+}); |
+ |
+exports.$set('KeyPair', KeyPair); |