Fixed failing samples
Updated uuid/webpack packages Added froze on objects publicly exposed Removed remaining while loops for actions/events processing
This commit is contained in:
@ -1,13 +1,6 @@
|
||||
module.exports = function GossipSeed(endPoint, hostName) {
|
||||
if (typeof endPoint !== 'object' || !endPoint.host || !endPoint.port) throw new TypeError('endPoint must be have host and port properties.');
|
||||
Object.defineProperties(this, {
|
||||
endPoint: {
|
||||
enumerable: true,
|
||||
value: endPoint
|
||||
},
|
||||
hostName: {
|
||||
enumerable: true,
|
||||
value: hostName
|
||||
}
|
||||
});
|
||||
this.endPoint = endPoint;
|
||||
this.hostName = hostName;
|
||||
Object.freeze(this);
|
||||
};
|
||||
|
Reference in New Issue
Block a user