src/Palete/Javascript.vala
authorAlan Knowles <alan@roojs.com>
Wed, 18 Mar 2015 11:13:37 +0000 (19:13 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 18 Mar 2015 11:13:37 +0000 (19:13 +0800)
tests/JsCoreExecTest.vala.c
tests/Javascript.vala.c

src/Palete/Javascript.vala

index 9fc1861..13fe8f9 100644 (file)
@@ -164,10 +164,10 @@ namespace Palete {
                         
                     // this will never work, as we can not create arrays of Values - due to no 
                     // free function being available..
-                        var args =  new JSCore.Value[1] ;
-                        args[0] = new JSCore.Value.string(ctx,json_args) ;
+                        //var args =  new JSCore.Value[1] ;
+                        //args[0] = new JSCore.Value.string(ctx,json_args) ;
                         
-                        unowned JSCore.Value res = oval.call_as_function(ctx, othis, args, out exd);
+                        unowned JSCore.Value res = oval.call_as_function(ctx, othis, null, out exd);
 
                        
                }