From d1198d33a525451aec5a70389219b32e6af6691d Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 19 Mar 2015 18:52:45 +0800 Subject: [PATCH] src/Palete/Javascript.vala tests/JsCoreExecTest.vala.c tests/Javascript.vala.c --- src/Palete/Javascript.vala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Palete/Javascript.vala b/src/Palete/Javascript.vala index dd18690ab..b0a9e330c 100644 --- a/src/Palete/Javascript.vala +++ b/src/Palete/Javascript.vala @@ -173,15 +173,15 @@ namespace Palete { } - //var res = jscore_object_call_as_function( - // ctx, oval, othis, js_data, out exd - // ); + var res = jscore_object_call_as_function( + ctx, oval, othis, js_data, out exd + ); // 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) ; - unowned JSCore.Value res = oval.call_as_function(ctx, othis, null, out exd); + //unowned JSCore.Value res = oval.call_as_function(ctx, othis, null, out exd); // extract the text value from res... JSCore.String sv = res.to_string_copy ( ctx, out exe); var length = sv.get_maximum_utf8_c_string_size(); -- 2.39.2