GNOME Bugzilla – Bug 656295
gjs: Don't register the gi module until a context is created
Last modified: 2011-08-10 16:48:46 UTC
gi was moved into libgjs, but was still using GJS_REGISTER_NATIVE_MODULE(), which was causing gjs_define_gi_stuff() to be run before main(), which is bad for any number of reasons. (In particular, this broke log() in gnome-shell, because the gi initialization code caused the gjs logging framework to be initialized before gnome-shell got a chance to set GJS_DEBUG_TOPICS.)
Created attachment 193569 [details] [review] gjs: Don't register the gi module until a context is created
Review of attachment 193569 [details] [review]: I think this is right.
Attachment 193569 [details] pushed as 1dd3a58 - gjs: Don't register the gi module until a context is created