[Verification] Code compiles.
Change-Id: If9c98b7c2cf37d35ebbdb10650d78ccdcd153e2f
Signed-off-by: Tomasz Marciniak <t.marciniak@samsung.com>
}
}
-function Device(id, name, type, services) {
+function Device(id_, name_, type_, services_) {
validator_.isConstructorCall(this, Device);
- this.id = id;
- this.name = name;
- this.type = type;
- this.services = services;
+ Object.defineProperties(this, {
+ id: {
+ value: id_,
+ writable: false,
+ enumerable: true
+ },
+ name: {
+ value: name_,
+ writable: false,
+ enumerable: true
+ },
+ type: {
+ value: type_,
+ writable: false,
+ enumerable: true
+ },
+ services: {
+ value: services_,
+ writable: false,
+ enumerable: true
+ },
+ });
}
function ConvergenceManager() {