[gjs: 1/2] object: Restore resolve return value



commit edfe5ec2cd2a337fbb82e38900d9ba3b89f7208e
Author: Philip Chimento <philip chimento gmail com>
Date:   Thu Jan 25 22:41:02 2018 -0800

    object: Restore resolve return value
    
    This got overlooked when we switched from throwing an exception on
    touching a finalized object, to logging a warning. Returning true from
    the resolve hook means the resolved pointer must be set.

 gi/object.cpp | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gi/object.cpp b/gi/object.cpp
index a0fc16a..c8b5a86 100644
--- a/gi/object.cpp
+++ b/gi/object.cpp
@@ -766,6 +766,7 @@ object_instance_resolve(JSContext       *context,
                    priv->gobj);
         gjs_dumpstack();
 
+        *resolved = false;
         return true;
     }
 


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