diff options
author | Daniel Carl <danielcarl@gmx.de> | 2014-01-19 02:02:36 +0100 |
---|---|---|
committer | Daniel Carl <danielcarl@gmx.de> | 2014-01-19 02:02:36 +0100 |
commit | afcdae37b3184eac69de8f0871bae12131769608 (patch) | |
tree | 8d7fa3553bf4f991a3be0f1cd6183409a7fc3d38 /src/js.h | |
parent | d877e3ccf04d2fd4e8dd3304bf4855328c69c8e6 (diff) |
Fixed nextpattern to js value conversion (#62).
The prev- and nextpatterns can't be given to JavaScript as strings that are
split on the ',' to be interpreted as regular expression. So the patterns have
to be given as array of RegExp objects instead.
Diffstat (limited to 'src/js.h')
-rw-r--r-- | src/js.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -30,5 +30,6 @@ char* js_object_call_function(JSContextRef ctx, JSObjectRef obj, const char *func, int count, JSValueRef params[]); char *js_ref_to_string(JSContextRef ctx, JSValueRef ref); JSValueRef js_string_to_ref(JSContextRef ctx, const char *string); +JSValueRef js_object_to_ref(JSContextRef ctx, const char *json); #endif /* end of include guard: _JS_H */ |