Gjs Lang.Class uses __proto__ to change function prototypes?
- From: Nikita Churaev <lamefun x0r gmail com>
- To: "desktop-devel-list gnome org" <desktop-devel-list gnome org>
- Subject: Gjs Lang.Class uses __proto__ to change function prototypes?
- Date: Thu, 18 Apr 2013 22:16:09 +0400
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]