summaryrefslogtreecommitdiff
path: root/src/js.h
diff options
context:
space:
mode:
authorportix <none@none>2013-02-25 16:43:26 +0100
committerportix <none@none>2013-02-25 16:43:26 +0100
commitcf51ec02bdb453a642e3a0a468dc67259d2aa904 (patch)
tree42c77712109084e06fa4c6201bf9bcd9980165c0 /src/js.h
parentb843d5c2abeee780ec3ef2d14c61e185986e9509 (diff)
downloaddwb-cf51ec02bdb453a642e3a0a468dc67259d2aa904.zip
Check script syntax before creating the script object; implementing Function.debug
Diffstat (limited to 'src/js.h')
-rw-r--r--src/js.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/js.h b/src/js.h
index aafd2cdb..ac430bfb 100644
--- a/src/js.h
+++ b/src/js.h
@@ -39,6 +39,7 @@ JSObjectRef js_make_function(JSContextRef ctx, const char *script);
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 *);
+gboolean js_check_syntax(JSContextRef ctx, const char *script, const char *filename, int lineOffset);
typedef struct js_array_iterator_s {
JSContextRef ctx;