[gjs/gnome-3-8-js17: 8/14] byteArray: update PropertySpec for new API
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/gnome-3-8-js17: 8/14] byteArray: update PropertySpec for new API
- Date: Tue, 26 Mar 2013 22:17:39 +0000 (UTC)
commit 458feef544394f3d4237a55da6d3dfd7535b1b4f
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]