Created
June 5, 2010 09:29
-
-
Save wereHamster/426476 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 2f17924139f7add5c66a30c91996f347160f2b2f Mon Sep 17 00:00:00 2001 | |
From: Tomas Carnecky <[email protected]> | |
Date: Sat, 5 Jun 2010 11:23:26 +0200 | |
Subject: [PATCH] Properly export js_DateClass and js_RegExpClass, they are needed by mongodb | |
--- | |
js/src/jsdate.cpp | 2 +- | |
js/src/jsdate.h | 2 +- | |
js/src/jsregexp.cpp | 2 +- | |
js/src/jsregexp.h | 2 +- | |
4 files changed, 4 insertions(+), 4 deletions(-) | |
diff --git a/js/src/jsdate.cpp b/js/src/jsdate.cpp | |
index b5347e2..c03d67c 100644 | |
--- a/js/src/jsdate.cpp | |
+++ b/js/src/jsdate.cpp | |
@@ -497,7 +497,7 @@ const uint32 JSSLOT_LOCAL_TIME = JSSLOT_PRIVATE + 1; | |
const uint32 DATE_RESERVED_SLOTS = 2; | |
-JSClass js_DateClass = { | |
+JS_FRIEND_DATA(JSClass) js_DateClass = { | |
js_Date_str, | |
JSCLASS_HAS_RESERVED_SLOTS(DATE_RESERVED_SLOTS) | | |
JSCLASS_HAS_CACHED_PROTO(JSProto_Date), | |
diff --git a/js/src/jsdate.h b/js/src/jsdate.h | |
index 238994e..7d82a18 100644 | |
--- a/js/src/jsdate.h | |
+++ b/js/src/jsdate.h | |
@@ -46,7 +46,7 @@ | |
JS_BEGIN_EXTERN_C | |
-extern JSClass js_DateClass; | |
+extern JS_FRIEND_DATA(JSClass) js_DateClass; | |
extern JSObject * | |
js_InitDateClass(JSContext *cx, JSObject *obj); | |
diff --git a/js/src/jsregexp.cpp b/js/src/jsregexp.cpp | |
index 57a1ad9..7e9e479 100644 | |
--- a/js/src/jsregexp.cpp | |
+++ b/js/src/jsregexp.cpp | |
@@ -5449,7 +5449,7 @@ regexp_trace(JSTracer *trc, JSObject *obj) | |
JS_CALL_STRING_TRACER(trc, re->source, "source"); | |
} | |
-JSClass js_RegExpClass = { | |
+JS_FRIEND_DATA(JSClass) js_RegExpClass = { | |
js_RegExp_str, | |
JSCLASS_HAS_PRIVATE | | |
JSCLASS_HAS_RESERVED_SLOTS(REGEXP_CLASS_FIXED_RESERVED_SLOTS) | | |
diff --git a/js/src/jsregexp.h b/js/src/jsregexp.h | |
index 956b5fd..0d9a8d8 100644 | |
--- a/js/src/jsregexp.h | |
+++ b/js/src/jsregexp.h | |
@@ -152,7 +152,7 @@ js_FreeRegExpStatics(JSContext *cx); | |
(JSVAL_IS_OBJECT(v) && JSVAL_TO_OBJECT(v) && \ | |
OBJ_GET_CLASS(cx, JSVAL_TO_OBJECT(v)) == &js_RegExpClass) | |
-extern JSClass js_RegExpClass; | |
+extern JS_FRIEND_DATA(JSClass) js_RegExpClass; | |
enum regexp_tinyid { | |
REGEXP_SOURCE = -1, | |
-- | |
1.7.1.GIT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment