Re: Gjs Lang.Class uses __proto__ to change function prototypes?
- From: Andy Wingo <wingo pobox com>
- To: Nikita Churaev <lamefun x0r gmail com>
- Cc: "desktop-devel-list gnome org" <desktop-devel-list gnome org>
- Subject: Re: Gjs Lang.Class uses __proto__ to change function prototypes?
- Date: Fri, 19 Apr 2013 22:12:56 +0200
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]