[gjs] importer: Handle JSENUMERATE_INIT_ALL



commit 0df60c2df5ddeae0ebf7faff67ac2751eb0bb36d
Author: Colin Walters <walters verbum org>
Date:   Thu Sep 23 17:02:00 2010 -0400

    importer: Handle JSENUMERATE_INIT_ALL
    
    We don't have any non-enumerable properties on the importer
    object, so just handle this like JSENUMERATE_INIT.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=622896

 gjs/compat.h   |    2 ++
 gjs/importer.c |    3 +++
 2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gjs/compat.h b/gjs/compat.h
index 226018c..1480ef8 100644
--- a/gjs/compat.h
+++ b/gjs/compat.h
@@ -59,6 +59,8 @@ G_BEGIN_DECLS
 #define JSID_VOID JSVAL_VOID
 #define JSID_IS_VOID(id) (id == JSVAL_VOID)
 
+#else
+#define HAVE_JSENUMERATE_INIT_ALL 1
 #endif
 
 G_END_DECLS
diff --git a/gjs/importer.c b/gjs/importer.c
index ee42b48..5f755cb 100644
--- a/gjs/importer.c
+++ b/gjs/importer.c
@@ -724,6 +724,9 @@ importer_new_enumerate(JSContext  *context,
     ImporterIterator *iter;
 
     switch (enum_op) {
+#ifdef HAVE_JSENUMERATE_INIT_ALL
+    case JSENUMERATE_INIT_ALL:
+#endif
     case JSENUMERATE_INIT: {
         Importer *priv;
         JSObject *search_path;



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