Removing gjs-internals-1.0



Hi,

I opened bug 772386 [1] in order to speed along upgrading GJS to newer SpiderMonkey releases [2]. Basically I'd like to reduce libgjs's API surface by quite a lot and not expose any SpiderMonkey internals at all, since they change with every SpiderMonkey release.

It seems that gnome-shell is the only user of the gjs-internals-1.0 package, and only in the hack in src/shell-js.cpp. I'd support exporting a native function in GJS to achieve that, in order to avoid gnome-shell having to dip into SpiderMonkey API. (Longer term, it would be nice to be able to pass a JSObject directly in through introspection, but I don't think that's a realistic goal right now.)

Note: I've crossposted this to gnome-shell-list because _javascript_-list isn't too active and I suspect more gnome-shell developers will see it here. If you're interested in keeping up with GJS development, by all means please subscribe to _javascript_-list! :-)

Regards,
Philip C 

[1] https://bugzilla.gnome.org/show_bug.cgi?id=772386
[2] https://bugzilla.gnome.org/show_bug.cgi?id=742249



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