Call to JS_Init() should be checked for failure
If JS_Init() fails, polkit will continue and probably eventually segfault somewhere in the mozjs library because pieces of the library will not have been initialized. This has been seen for mips64 built using poky.