sync
authorAlan Knowles <alan@roojs.com>
Wed, 18 Mar 2015 12:16:53 +0000 (20:16 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 18 Mar 2015 12:16:53 +0000 (20:16 +0800)
1  2 
src/vapi/javascriptcore.vapi

@@@ -277,7 -277,7 +277,8 @@@ namespace JSCore 
  
    [Compact]
    /* FIXME: free_function causes a warning */
 +  [CCode (cname = "void", free_function = "(void)0")]
+   [CCode (cname = "JSValueRef", free_function = "")]
    public class Value {
      [CCode (cname = "JSValueMakeUndefined")]
      public Value.undefined (Context ctx);
      public JSCore.String to_string_copy (Context ctx, Value *exception);
  
      [CCode (cname = "JSValueToObject", instance_pos=1.1)]
-     public Object to_object (Context ctx, Value *exception);
+     public Object to_object (Context ctx, out Value *exception);
  
      [CCode (cname = "JSValueProtect", instance_pos=1.1)]
      public void protect (Context ctx);
  
      [CCode (cname = "JSValueUnprotect", instance_pos=1.1)]
      public void unprotect (Context ctx);
+     
+    
    }
  
  
    [Compact]
    /* FIXME: causes a warning */
-   [CCode (cname = "void", free_function = "")]
+   [CCode (cname = "JSObjectRef", free_function = "")]
    public class Object: JSCore.Value {
      [CCode (cname = "JSObjectMake")]
      public Object (Context ctx, Class js_class, void *data);
      public bool is_function (Context ctx);
  
      [CCode (cname = "JSObjectCallAsFunction", instance_pos=1.1)]
-     public unowned JSCore.Value call_as_function (Context ctx,
-                                                   JSCore.Object? this_object,
-                                                       [CCode (array_length_pos=2.9, array_length_type="size_t")]
-                                                   JSCore.Value[]? arguments,
-                                                   out JSCore.Value exception);
+     public unowned JSCore.Value call_as_function (Context ctx, 
+                                                                  JSCore.Object thisObject,
+                                                                  [CCode (array_length_pos=2.9, array_length_type="size_t")]
+                                                                  JSCore.Value[] arguments,
+                                                                  out JSCore.Value exception);
  
      [CCode (cname = "JSObjectIsConstructor", instance_pos=1.1)]
      public bool is_constructor (Context ctx);