We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d65635d commit dc17333Copy full SHA for dc17333
lib/socket.js
@@ -76,8 +76,9 @@ Socket.prototype.__proto__ = Emitter.prototype;
76
*/
77
78
exports.flags.forEach(function(flag){
79
- Socket.prototype.__defineGetter__(flag, function(name){
80
- this.flags.push(name);
+ Socket.prototype.__defineGetter__(flag, function(){
+ this.flags = this.flags || {};
81
+ this.flags[flag] = true;
82
return this;
83
});
84
0 commit comments