[gjs/wip/ptomato/mozjs52: 16/38] importer: API change in enumerate operation



commit 7d83b690e6bde525546b25c18481ada0cbfd113d
Author: Philip Chimento <philip chimento gmail com>
Date:   Sun Mar 19 05:16:40 2017 +0000

    importer: API change in enumerate operation
    
    Now an enumerate operation distinguishes between whether only the
    enumerable properties should be enumerated, or all of them, by passing in
    a boolean parameter. In the case of the importer object, we don't care,
    so we ignore the parameter.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=784196

 gjs/importer.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gjs/importer.cpp b/gjs/importer.cpp
index 70a352b..4ee45ce 100644
--- a/gjs/importer.cpp
+++ b/gjs/importer.cpp
@@ -666,7 +666,8 @@ do_import(JSContext       *context,
 static bool
 importer_enumerate(JSContext        *context,
                    JS::HandleObject  object,
-                   JS::AutoIdVector& properties)
+                   JS::AutoIdVector& properties,
+                   bool              enumerable_only)
 {
     Importer *priv;
     guint32 search_path_len;


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