summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2022-06-29 20:22:40 +0800
committerXi Ruoyao <xry111@mengyan1223.wang>2022-08-12 08:22:52 +0000
commitf662e3b7de14f52b601d8435f4f42e20af0e95ca (patch)
treee5af6f5e94f6817c10fdd011a4ae37c212d1571f
parent138e4f4f0c3337981cb734f36a35ae578536c336 (diff)
downloadpolkit-f662e3b7de14f52b601d8435f4f42e20af0e95ca.tar.gz
jsauthority: port to mozjs-102
-rw-r--r--meson.build2
-rw-r--r--src/polkitbackend/polkitbackendjsauthority.cpp2
2 files changed, 1 insertions, 3 deletions
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
};