[gjs: 1/5] object: Allow checking the existence of vfunc properties on a prototype
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 1/5] object: Allow checking the existence of vfunc properties on a prototype
- Date: Thu, 31 Jan 2019 06:12:28 +0000 (UTC)
commit 9a4cd874e9a0e08fa9df815e3361d0b0f8a9643e
Author: Jason Hicks <jaszhix gmail com>
Date: Sat Dec 29 01:46:59 2018 -0600
object: Allow checking the existence of vfunc properties on a prototype
gi/object.cpp | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/gi/object.cpp b/gi/object.cpp
index 3a82bb38..96d8e56d 100644
--- a/gi/object.cpp
+++ b/gi/object.cpp
@@ -799,10 +799,7 @@ bool ObjectPrototype::resolve_impl(JSContext* context, JS::HandleObject obj,
return true;
}
- if (!gjs_define_function(context, obj, m_gtype, vfunc))
- return false;
-
- *resolved = true;
+ *resolved = gjs_define_function(context, obj, m_gtype, vfunc) != NULL;
return true;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]