seed r49 - trunk/libseed
- From: racarr svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r49 - trunk/libseed
- Date: Sat, 1 Nov 2008 10:23:31 +0000 (UTC)
Author: racarr
Date: Sat Nov 1 10:23:31 2008
New Revision: 49
URL: http://svn.gnome.org/viewvc/seed?rev=49&view=rev
Log:
Return JSNull from constructor if we don't get a gobject.
Modified:
trunk/libseed/seed-engine.c
Modified: trunk/libseed/seed-engine.c
==============================================================================
--- trunk/libseed/seed-engine.c (original)
+++ trunk/libseed/seed-engine.c Sat Nov 1 10:23:31 2008
@@ -29,6 +29,7 @@
GParamSpec ** global_prop_cache;
+
static void seed_make_exception(JSValueRef * exception,
gchar * name, gchar * message)
{
@@ -136,10 +137,10 @@
gobject = g_object_newv(type, nparams, params);
if (!gobject)
- return 0;
+ JSValueMakeNull(eng->context);
ret = (JSObjectRef)seed_value_from_object(gobject);
-
+
g_type_class_unref(oclass);
g_free(params);
@@ -267,7 +268,9 @@
return retval_ref;
}
-void seed_gobject_define_property_from_function_info(GIFunctionInfo *info, JSObjectRef object, gboolean instance)
+void seed_gobject_define_property_from_function_info(GIFunctionInfo *info,
+ JSObjectRef object,
+ gboolean instance)
{
GIFunctionInfoFlags flags;
int n_args, i;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]