summaryrefslogtreecommitdiff
path: root/js/src/Ice/Address.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/Ice/Address.js')
-rw-r--r--js/src/Ice/Address.js16
1 files changed, 11 insertions, 5 deletions
diff --git a/js/src/Ice/Address.js b/js/src/Ice/Address.js
index d891a83bced..32377436131 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;