Gjs Lang.Class uses __proto__ to change function prototypes?



I've stumbled upon this while reading lang.js: 

newClass.__proto__ = this.constructor.prototype;

where newClass is a function. Why does Gjs do this? Isn't this
non-standard?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]