diff options
Diffstat (limited to 'js/src/Ice/Address.js')
-rw-r--r-- | js/src/Ice/Address.js | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/js/src/Ice/Address.js b/js/src/Ice/Address.js index 6df7ade1de1..817862838b6 100644 --- a/js/src/Ice/Address.js +++ b/js/src/Ice/Address.js @@ -8,10 +8,16 @@ // ********************************************************************** -var Ice = require("../Ice/ModuleRegistry").Ice; -Ice.Address = function(host, port) +const Ice = require("../Ice/ModuleRegistry").Ice; + +class Address { - this.host = host; - this.port = port; -}; + constructor(host, port) + { + this.host = host; + this.port = port; + } +} + +Ice.Address = Address; module.exports.Ice = Ice; |