gcampax/gjs — comment on commit 9d9a8127f72280f2d1cde6c4245e7e521e0786ae
File:  line 0
By magcius:

Would be nice if we could make Lang.Class choose the metaclass based on the parent's metaclass, and set up all gi classes to have their metaclass be GObject.Class (I'm fine with a hack like `JS_SetProperty(obj, "__metaclass__", "GObject.Class");`, which Lang.Class would explicitly check for), so you could still use Lang.Class to create a GObject subclass.