Re: Gjs Lang.Class uses __proto__ to change function prototypes?



On Thu 18 Apr 2013 20:16, Nikita Churaev <lamefun x0r gmail com> writes:

newClass.__proto__ = this.constructor.prototype;

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

ES6 will standardize __proto__.

Andy
-- 
http://wingolog.org/


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