29 #ifndef __LIBFREEWRL_SYSTEM_JS_H__
30 #define __LIBFREEWRL_SYSTEM_JS_H__
40 #define JS_HAS_FILE_OBJECT 1
42 #if defined(IPHONE) || defined(_ANDROID) || defined(NO_JAVASCRIPT)
43 typedef int JSContext;
50 typedef int JSFunctionSpec;
51 typedef int JSPropertySpec;
54 typedef int JSErrorReport;
62 #ifdef MOZILLA_JS_UNSTABLE_INCLUDES
63 # include "../unstable/jsapi.h"
64 # include "../unstable/jsdbgapi.h"
67 # include <jsdbgapi.h>
71 #define JSSCRIPT JSObject
73 #define JSSCRIPT JSScript
76 #define JS_GET_PROPERTY_STUB JS_PropertyStub
79 #define JS_SET_PROPERTY_STUB1 js_SetPropertyDebug1
83 # define JS_SET_PROPERTY_STUB2 JS_PropertyStub
85 # define JS_SET_PROPERTY_STUB2 JS_StrictPropertyStub
88 #define JS_SET_PROPERTY_STUB3 js_SetPropertyDebug3
89 #define JS_SET_PROPERTY_STUB4 js_SetPropertyDebug4
90 #define JS_SET_PROPERTY_STUB5 js_SetPropertyDebug5
91 #define JS_SET_PROPERTY_STUB6 js_SetPropertyDebug6
92 #define JS_SET_PROPERTY_STUB7 js_SetPropertyDebug7
93 #define JS_SET_PROPERTY_STUB8 js_SetPropertyDebug8
94 #define JS_SET_PROPERTY_CHECK js_SetPropertyCheck