GNOME Bugzilla – Bug 664360
Strip a bunch of compat and require libmozjs185
Last modified: 2011-11-28 19:46:26 UTC
Going forward, I think we want to track upstream libmozjs. Waldo has already promised me another stable release, so when that arrives we can track that instead.
Created attachment 201687 [details] [review] Require mozjs185
Created attachment 201688 [details] [review] Strip compat.h #define hell
Created attachment 201689 [details] [review] Remove JSFUN_FAST_NATIVE
Created attachment 201690 [details] [review] function: Port to the GJS_NATIVE_CONSTRUCTOR stuff
Created attachment 202176 [details] [review] Require mozjs185 Strip the JS_PACKAGE/GJS_INTERNALS_LIBS from the .pc files. Apparently PKG_CONFIG_MODULES completely breaks when you have unexpanded variables.
Review of attachment 201688 [details] [review]: Looks good. ::: gjs/profiler.c @@ +155,3 @@ * figure out the name of the called function. */ + function_name = JS_GetFunctionId(function);; Extra ;
Review of attachment 201689 [details] [review]: Sure.
Review of attachment 201690 [details] [review]: Hm...was there a reason function was special cased before? It looks like I was the last person to touch this code in 7ae2fa5662e327ccd6bdb624ef66bd8edba6659e . It's odd because if you look at that commit I changed everything except function to use the macros. If it works, maybe we should just go with it, but looking at this gave me pause.
Review of attachment 202176 [details] [review]: I had some thought that when the next mozjs release comes out it might make sense to support it *and* mozjs185, so it would make sense to keep --with-js-package etc, but...eh. We could just as easily require the latest version.
Attachment 201688 [details] pushed as f8d1e99 - Strip compat.h #define hell Attachment 201689 [details] pushed as b2eb4ec - Remove JSFUN_FAST_NATIVE Attachment 201690 [details] pushed as 134bb84 - function: Port to the GJS_NATIVE_CONSTRUCTOR stuff Attachment 202176 [details] pushed as aeb75aa - Require mozjs185