[gjs: 3/5] Revert "object: Allow checking the existence of vfunc properties on a prototype"



commit 7756b13568929e258a04b712e473ee7896270cbe
Author: Jason Hicks <jaszhix gmail com>
Date:   Sat Dec 29 01:46:59 2018 -0600

    Revert "object: Allow checking the existence of vfunc properties on a prototype"
    
    This reverts commit 711f6a32da549a85633f100086dbd52c4edc4fb2.

 gi/object.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gi/object.cpp b/gi/object.cpp
index 96d8e56d..3a82bb38 100644
--- a/gi/object.cpp
+++ b/gi/object.cpp
@@ -799,7 +799,10 @@ bool ObjectPrototype::resolve_impl(JSContext* context, JS::HandleObject obj,
                 return true;
             }
 
-            *resolved = gjs_define_function(context, obj, m_gtype, vfunc) != NULL;
+            if (!gjs_define_function(context, obj, m_gtype, vfunc))
+                return false;
+
+            *resolved = true;
             return true;
         }
 


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