[gjs/wip/js17: 9/14] byteArray: update PropertySpec for new API
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/wip/js17: 9/14] byteArray: update PropertySpec for new API
- Date: Sun, 24 Mar 2013 13:28:21 +0000 (UTC)
commit 76d2f8a10be1d86626d436d33a936bd845f04928
Author: Tim Lunn <tim feathertop org>
Date: Wed Jan 9 19:21:24 2013 +1100
byteArray: update PropertySpec for new API
For some reason the setter fails to get called when JSPROP_SHARED
is set.
https://bugzilla.gnome.org/show_bug.cgi?id=690982
gjs/byteArray.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gjs/byteArray.c b/gjs/byteArray.c
index f24a17d..813deab 100644
--- a/gjs/byteArray.c
+++ b/gjs/byteArray.c
@@ -956,9 +956,9 @@ enum ByteArrayTinyId {
static JSPropertySpec gjs_byte_array_proto_props[] = {
{ "length", BYTE_ARRAY_TINY_ID_LENGTH,
- JSPROP_PERMANENT | JSPROP_SHARED,
- byte_array_length_getter,
- byte_array_length_setter
+ JSPROP_PERMANENT,
+ (JSPropertyOp)byte_array_length_getter,
+ (JSStrictPropertyOp)byte_array_length_setter
},
{ NULL }
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]