diff options
Diffstat (limited to 'src/js.h')
-rw-r--r-- | src/js.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -16,8 +16,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef JS_H -#define JS_H +#ifndef __DWB_JS_H__ +#define __DWB_JS_H__ #include <JavaScriptCore/JavaScript.h> typedef struct js_iterator_s js_array_iterator; @@ -58,6 +58,7 @@ 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); +gboolean js_object_has_property(JSContextRef ctx, JSObjectRef arg, const char *name); void js_array_iterator_init(JSContextRef ctx, js_array_iterator *iter, JSObjectRef object); JSValueRef js_array_iterator_next(js_array_iterator *iter, JSValueRef *exc); |