axon icon indicating copy to clipboard operation
axon copied to clipboard

Deprecated prototypical inheritance

Open maksbd19 opened this issue 3 years ago • 0 comments

Hi I found this line in the code to modify the prototype of Socket. I understand this approach is deprecated and also discouraged.

Socket.prototype.__proto__ = Emitter.prototype;

https://github.com/tj/axon/blob/e70a1649c68868de167ec5e132c61dd8f52f7645/lib/sockets/sock.js#L60

maksbd19 avatar Mar 24 '21 14:03 maksbd19