src/c/jscore_object_call_as_function.c
authorAlan Knowles <alan@roojs.com>
Thu, 19 Mar 2015 10:26:42 +0000 (18:26 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 19 Mar 2015 10:26:42 +0000 (18:26 +0800)
src/c/jscore_object_call_as_function.c

index f3b6bfb..060b3a8 100644 (file)
@@ -15,7 +15,7 @@ JSValueRef jscore_object_call_as_function(
        JSValueRef* exception
        
 ) {
-
+       JSValueRef  ex = 0;
        JSValueRef res;
     JSValueRef *jsargs;
     
@@ -33,7 +33,7 @@ JSValueRef jscore_object_call_as_function(
                        thisObject, 
                        0, 
                        null, 
-                       exception
+                       &ex
        );
        // free the args..