#include <stdarg.h>
#include <string.h>
+JSObjectRef function_proto;
+
JSObjectRef seed_obj_ref;
GQuark qname;
method_ref = JSObjectMake (ctx, gobject_method_class,
g_base_info_ref ((GIBaseInfo *) info));
+
+ JSObjectSetPrototype (ctx, method_ref, function_proto);
name = g_base_info_get_name ((GIBaseInfo *) info);
if (!g_strcmp0 (name, "new"))
eng->group = context_group;
eng->search_path = NULL;
+ function_proto = (JSObjectRef)
+ seed_simple_evaluate (eng->context, "Function.prototype", NULL);
+
gobject_class = JSClassCreate (&gobject_def);
JSClassRetain (gobject_class);
gobject_method_class = JSClassCreate (&gobject_method_def);
eng->global = JSContextGetGlobalObject (eng->context);
eng->group = context_group;
eng->search_path = NULL;
+
+ function_proto = (JSObjectRef)
+ seed_simple_evaluate (eng->context, "Function.prototype", NULL);
gobject_class = JSClassCreate (&gobject_def);
JSClassRetain (gobject_class);