summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--javascript/jsapi.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/javascript/jsapi.h b/javascript/jsapi.h
index 051432996..d664b3795 100644
--- a/javascript/jsapi.h
+++ b/javascript/jsapi.h
@@ -97,7 +97,14 @@ JS_NewCompartmentAndGlobalObject(JSContext *cx,
/* string type cast */
#define JSAPI_STRING_TO_JSVAL(str) ((str == NULL)?JSVAL_NULL:STRING_TO_JSVAL(str))
-#else /* #if JS_VERSION <= 180 */
+#define JSAPI_CLASS_NO_INTERNAL_MEMBERS JSCLASS_NO_RESERVED_MEMBERS
+
+
+
+
+#else /*************** #if JS_VERSION <= 180 *****************/
+
+
/* three parameter jsapi native call */
@@ -157,6 +164,8 @@ JS_NewCompartmentAndGlobalObject(JSContext *cx,
/* string type cast */
#define JSAPI_STRING_TO_JSVAL(str) ((str == NULL)?JSVAL_NULL:STRING_TO_JSVAL(str))
+#define JSAPI_CLASS_NO_INTERNAL_MEMBERS JSCLASS_NO_INTERNAL_MEMBERS
+
#endif
#define JSLOG(args...) LOG((args))