@quadratclown/dbus-next
Version:
The next great DBus library for Node
15 lines (12 loc) • 355 B
JavaScript
const libraryOptions = {
bigIntCompat: false
};
module.exports.getBigIntCompat = function () {
return libraryOptions.bigIntCompat;
};
module.exports.setBigIntCompat = function (val) {
if (typeof val !== 'boolean') {
throw new Error('dbus.setBigIntCompat() must be called with a boolean parameter');
}
libraryOptions.bigIntCompat = val;
};