Port JavaScript authority to mozjs52
Currently polkit depends on mozjs24 to provide the JavaScript support for the JavaScript authority. The problem is, mozjs24 is quite old at this point. Most other parts of the desktop have moved on. This patchset updates polkit to target mozjs52, instead. As a side benefit, we can re-enable the JIT, since it no longer seems to conflict with the watchdog thread used to detect when a javascript script is caught in an infinite loop. Most of the porting work was made by looking at what changes GJS performed when it retarted mozjs versions, and mimicing them. I also got some inspiration and a commit from an earlier port to mozjs38: https://lists.freedesktop.org/archives/polkit-devel/2017-April/000533.html
Showing
This diff is collapsed.
Please register or sign in to comment