[gjs/mozjs102: 59/59] Initial port to mozjs102
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/mozjs102: 59/59] Initial port to mozjs102
- Date: Sat, 23 Jul 2022 20:58:06 +0000 (UTC)
commit b6aa3d1aca18ce139031ecb37324514845f717ee
Author: Evan Welsh <contact evanwelsh com>
Date: Sun Jul 3 17:24:18 2022 -0400
Initial port to mozjs102
gjs/global.cpp | 1 +
modules/core/overrides/GObject.js | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gjs/global.cpp b/gjs/global.cpp
index 7c6078501..93b50b2f4 100644
--- a/gjs/global.cpp
+++ b/gjs/global.cpp
@@ -74,6 +74,7 @@ class GjsBaseGlobal {
JSContext* cx, const JSClass* clasp,
JS::RealmCreationOptions options = JS::RealmCreationOptions()) {
options.setNewCompartmentAndZone();
+ options.setFreezeBuiltins(false);
return base(cx, clasp, options);
}
diff --git a/modules/core/overrides/GObject.js b/modules/core/overrides/GObject.js
index df6f9dc27..364ff2477 100644
--- a/modules/core/overrides/GObject.js
+++ b/modules/core/overrides/GObject.js
@@ -401,7 +401,7 @@ function _init() {
};
GObject.ParamSpec.jsobject = function (name, nick, blurb, flags) {
- return GObject.param_spec_boxed(name, nick, blurb, Object.$gtype, flags);
+ return GObject.param_spec_boxed(name, nick, blurb, GObject.TYPE_JSOBJECT, flags);
};
GObject.ParamSpec.param = function (name, nick, blurb, flags, paramType) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]