From 4e3bfa50e15b7fb0b5554d8f01f366433f0aed6b Mon Sep 17 00:00:00 2001 From: portix Date: Mon, 25 Feb 2013 23:26:57 +0100 Subject: Fixing scope of callback functions, print sourceURL in js_print_exception --- src/js.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/js.h') diff --git a/src/js.h b/src/js.h index ac430bfb..1a33fa50 100644 --- a/src/js.h +++ b/src/js.h @@ -34,8 +34,8 @@ char * js_call_as_function(WebKitWebFrame *, JSObjectRef, const char *string, co JSValueRef js_char_to_value(JSContextRef ctx, const char *text); char * js_value_to_json(JSContextRef ctx, JSValueRef value, size_t limit, JSValueRef *exc); JSValueRef js_execute(JSContextRef ctx, const char *, JSValueRef *exc); -gboolean js_print_exception(JSContextRef ctx, JSValueRef exception); -JSObjectRef js_make_function(JSContextRef ctx, const char *script); +gboolean js_print_exception(JSContextRef ctx, JSValueRef exception, char *buffer, size_t bs, int *line); +JSObjectRef js_make_function(JSContextRef ctx, const char *script, const char *path, int line); JSValueRef js_json_to_value(JSContextRef ctx, const char *text); JSValueRef js_context_change(JSContextRef, JSContextRef, JSValueRef, JSValueRef *); JSObjectRef js_value_to_function(JSContextRef, JSValueRef, JSValueRef *); -- cgit v1.2.3