diff options
author | portix <none@none> | 2013-02-25 23:26:57 +0100 |
---|---|---|
committer | portix <none@none> | 2013-02-25 23:26:57 +0100 |
commit | 4e3bfa50e15b7fb0b5554d8f01f366433f0aed6b (patch) | |
tree | 877313b7301889681a4d67208dd5f69280d18249 /src/js.h | |
parent | 1ff3a8bc3ad4b5cdc6cb9da31172a4eb01f4b794 (diff) | |
download | dwb-4e3bfa50e15b7fb0b5554d8f01f366433f0aed6b.zip |
Fixing scope of callback functions, print sourceURL in js_print_exception
Diffstat (limited to 'src/js.h')
-rw-r--r-- | src/js.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 *); |