Index: extensions/renderer/resources/messaging.js |
diff --git a/extensions/renderer/resources/messaging.js b/extensions/renderer/resources/messaging.js |
index 3b98432f887000fbfeba505e28bf17c28645c300..afd7244ece88740bcf69b6bc8820fb28b5b91724 100644 |
--- a/extensions/renderer/resources/messaging.js |
+++ b/extensions/renderer/resources/messaging.js |
@@ -400,15 +400,20 @@ |
return alignedArgs; |
} |
-var Port = utils.expose('Port', PortImpl, { functions: [ |
- 'disconnect', |
- 'postMessage' |
- ], |
- properties: [ |
- 'name', |
- 'onDisconnect', |
- 'onMessage' |
- ] }); |
+ function Port() { |
+ privates(Port).constructPrivate(this, arguments); |
+ } |
+ utils.expose(Port, PortImpl, { |
+ functions: [ |
+ 'disconnect', |
+ 'postMessage', |
+ ], |
+ properties: [ |
+ 'name', |
+ 'onDisconnect', |
+ 'onMessage', |
+ ], |
+ }); |
exports.$set('kRequestChannel', kRequestChannel); |
exports.$set('kMessageChannel', kMessageChannel); |