[gjs/wip/ptomato/mozjs31: 24/25] js: Don't pass JSPROP_READONLY to JS_PSG
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/wip/ptomato/mozjs31: 24/25] js: Don't pass JSPROP_READONLY to JS_PSG
- Date: Fri, 4 Nov 2016 01:42:37 +0000 (UTC)
commit 6d660efdba5e276445f5a7ba6d448a2936071011
Author: Philip Chimento <philip endlessm com>
Date: Thu Nov 3 18:39:16 2016 -0700
js: Don't pass JSPROP_READONLY to JS_PSG
This is redundant, now illegal, and caught at compile time in mozjs31.
gi/function.cpp | 2 +-
gi/gerror.cpp | 6 +++---
gi/gtype.cpp | 2 +-
gi/ns.cpp | 2 +-
4 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gi/function.cpp b/gi/function.cpp
index 66bfa2f..8f8d5f1 100644
--- a/gi/function.cpp
+++ b/gi/function.cpp
@@ -1482,7 +1482,7 @@ struct JSClass gjs_function_class = {
};
JSPropertySpec gjs_function_proto_props[] = {
- JS_PSG("length", get_num_arguments, JSPROP_READONLY | JSPROP_PERMANENT),
+ JS_PSG("length", get_num_arguments, JSPROP_PERMANENT),
JS_PS_END
};
diff --git a/gi/gerror.cpp b/gi/gerror.cpp
index ac1b2ea..4949175 100644
--- a/gi/gerror.cpp
+++ b/gi/gerror.cpp
@@ -291,9 +291,9 @@ struct JSClass gjs_error_class = {
/* We need to shadow all fields of GError, to prevent calling the getter from GBoxed
(which would trash memory accessing the instance private data) */
JSPropertySpec gjs_error_proto_props[] = {
- JS_PSG("domain", error_get_domain, GJS_MODULE_PROP_FLAGS | JSPROP_READONLY),
- JS_PSG("code", error_get_code, GJS_MODULE_PROP_FLAGS | JSPROP_READONLY),
- JS_PSG("message", error_get_message, GJS_MODULE_PROP_FLAGS | JSPROP_READONLY),
+ JS_PSG("domain", error_get_domain, GJS_MODULE_PROP_FLAGS),
+ JS_PSG("code", error_get_code, GJS_MODULE_PROP_FLAGS),
+ JS_PSG("message", error_get_message, GJS_MODULE_PROP_FLAGS),
JS_PS_END
};
diff --git a/gi/gtype.cpp b/gi/gtype.cpp
index c202e51..35e287f 100644
--- a/gi/gtype.cpp
+++ b/gi/gtype.cpp
@@ -106,7 +106,7 @@ get_name_func (JSContext *context,
/* Properties */
JSPropertySpec gjs_gtype_proto_props[] = {
- JS_PSG("name", get_name_func, JSPROP_READONLY | JSPROP_PERMANENT),
+ JS_PSG("name", get_name_func, JSPROP_PERMANENT),
JS_PS_END,
};
diff --git a/gi/ns.cpp b/gi/ns.cpp
index a4a6020..2cff633 100644
--- a/gi/ns.cpp
+++ b/gi/ns.cpp
@@ -179,7 +179,7 @@ struct JSClass gjs_ns_class = {
};
JSPropertySpec gjs_ns_proto_props[] = {
- JS_PSG("__name__", get_name, GJS_MODULE_PROP_FLAGS | JSPROP_READONLY),
+ JS_PSG("__name__", get_name, GJS_MODULE_PROP_FLAGS),
JS_PS_END
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]