Polkit has added support for the Duktape JavaScript engine.

The Polkit toolkit, used in distributions for handling authorization and defining access rules for operations that require elevated permissions (such as mounting a USB drive), has added a backend that allows the use of the embedded Duktape JavaScript engine instead of the previously used Mozilla Gecko engine (the default remains a build with Mozilla). The JavaScript language in Polkit is used to define access rules that interact with the privileged background process polkitd via the 'polkit' object.

Duktape is used in the NetSurf browser and is known for its compact size, high portability, and low resource consumption (the code occupies about 160 kB, and it requires only 64 kB of RAM to run). It provides full compatibility with Ecmascript 5.1 specifications and partial support for Ecmascript 2015 and 2016 (ES6 and ES7). Additionally, it includes specific extensions such as support for coroutines, a built-in logging framework, a CommonJS-based module loading mechanism, and a bytecode caching system that allows the saving and loading of compiled functions. It also includes a built-in debugger, a regular expression execution engine, and a subsystem for Unicode support.

Source: opennet.ru

Buy reliable website hosting with DDoS protection, VPS VDS servers 🔥 Buy reliable website hosting with DDoS protection, VPS VDS servers | ProHoster