PolicyKit: Branch 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Aug 15 08:33:34 UTC 2022


 meson.build                                    |    2 +-
 src/polkitbackend/polkitbackendjsauthority.cpp |    2 --
 2 files changed, 1 insertion(+), 3 deletions(-)

New commits:
commit f662e3b7de14f52b601d8435f4f42e20af0e95ca
Author: Xi Ruoyao <xry111 at xry111.site>
Date:   Wed Jun 29 20:22:40 2022 +0800

    jsauthority: port to mozjs-102

diff --git a/meson.build b/meson.build
index e2a8670..9eb52e7 100644
--- a/meson.build
+++ b/meson.build
@@ -148,7 +148,7 @@ if js_engine == 'duktape'
   func = 'pthread_condattr_setclock'
   config_h.set('HAVE_' + func.to_upper(), cc.has_function(func, prefix : '#include <pthread.h>'))
 elif js_engine == 'mozjs'
-  js_dep = dependency('mozjs-91')
+  js_dep = dependency('mozjs-102')
 endif
 
 dbus_dep = dependency('dbus-1', required: false)
diff --git a/src/polkitbackend/polkitbackendjsauthority.cpp b/src/polkitbackend/polkitbackendjsauthority.cpp
index 999269b..004748a 100644
--- a/src/polkitbackend/polkitbackendjsauthority.cpp
+++ b/src/polkitbackend/polkitbackendjsauthority.cpp
@@ -103,7 +103,6 @@ static const struct JSClassOps js_global_class_ops = {
   nullptr,  // mayResolve
   nullptr,  // finalize
   nullptr,  // call
-  nullptr,  // hasInstance
   nullptr,  // construct
   JS_GlobalObjectTraceHook
 };
@@ -124,7 +123,6 @@ static const struct JSClassOps js_polkit_class_ops = {
   nullptr,  // mayResolve
   nullptr,  // finalize
   nullptr,  // call
-  nullptr,  // hasInstance
   nullptr,  // construct
   nullptr   // trace
 };


More information about the hal-commit mailing list