[gjs] ByteArray: restore enumerability



commit 99208f782d8b1acd14f637829ec6130717f42943
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Thu Feb 21 16:32:37 2013 +0100

    ByteArray: restore enumerability
    
    Having a NULL JSClass.enum hook causes a segmentation fault, use
    JS_EnumerateStub instead, until we implement proper enumeration.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=694355

 gjs/byteArray.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gjs/byteArray.c b/gjs/byteArray.c
index 0348dda..3b44ecf 100644
--- a/gjs/byteArray.c
+++ b/gjs/byteArray.c
@@ -67,7 +67,7 @@ static struct JSClass gjs_byte_array_class = {
     JS_PropertyStub,
     byte_array_get_prop,
     byte_array_set_prop,
-    NULL,
+    JS_EnumerateStub,
     (JSResolveOp) byte_array_new_resolve, /* cast due to new sig */
     JS_ConvertStub,
     byte_array_finalize,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]