[gjs/wip/mozjs-188: 7/10] byteArray: update PropertySpec for new API
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/wip/mozjs-188: 7/10] byteArray: update PropertySpec for new API
- Date: Wed, 23 Jan 2013 21:54:42 +0000 (UTC)
commit a5df77293f58fb851aa74baaa3a8ae0e895708f0
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 1e70701..5cb3f03 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]