Follow-up fix for bug 625559.
authorAndreas Gal <gal@mozilla.com>
Wed, 26 Jan 2011 19:19:33 -0800
changeset 61449 0a28e819fb0aa7a6140a8a3723ef105ac14eefd0
parent 61448 9ac5cb7a9aeea5bdeb8782cb87a1c5e6d68311fd
child 61450 dd71c1b1159e4b8deed8fc22309c6f5a04e82f4e
push idunknown
push userunknown
push dateunknown
bugs625559
milestone2.0b10pre
Follow-up fix for bug 625559.
js/src/jsfun.cpp
js/src/jsfun.h
js/src/jsobj.cpp
js/src/jsobj.h
--- a/js/src/jsfun.cpp
+++ b/js/src/jsfun.cpp
@@ -2601,17 +2601,17 @@ Function(JSContext *cx, uintN argc, Valu
         return JS_FALSE;
 
     return Compiler::compileFunctionBody(cx, fun, principals, &bindings,
                                          chars, length, filename, lineno);
 }
 
 namespace js {
 
-bool
+JS_FRIEND_API(bool)
 IsBuiltinFunctionConstructor(JSFunction *fun)
 {
     return fun->maybeNative() == Function;
 }
 
 }
 
 static JSBool
--- a/js/src/jsfun.h
+++ b/js/src/jsfun.h
@@ -424,17 +424,17 @@ IsConstructing_PossiblyWithGivenThisObje
 inline const char *
 GetFunctionNameBytes(JSContext *cx, JSFunction *fun, JSAutoByteString *bytes)
 {
     if (fun->atom)
         return bytes->encode(cx, ATOM_TO_STRING(fun->atom));
     return js_anonymous_str;
 }
 
-bool
+extern JS_FRIEND_API(bool)
 IsBuiltinFunctionConstructor(JSFunction *fun);
 
 } /* namespace js */
 
 extern JSString *
 fun_toStringHelper(JSContext *cx, JSObject *obj, uintN indent);
 
 extern JSFunction *
--- a/js/src/jsobj.cpp
+++ b/js/src/jsobj.cpp
@@ -1277,17 +1277,17 @@ EvalKernel(JSContext *cx, uintN argc, Va
     *bucket = script;
 #ifdef CHECK_SCRIPT_OWNER
     script->owner = NULL;
 #endif
 
     return ok;
 }
 
-bool
+JS_FRIEND_API(bool)
 IsBuiltinEvalFunction(JSFunction *fun)
 {
     return fun->maybeNative() == eval;
 }
 
 }
 
 #if JS_HAS_OBJ_WATCHPOINT
--- a/js/src/jsobj.h
+++ b/js/src/jsobj.h
@@ -1868,13 +1868,13 @@ enum EvalType { INDIRECT_EVAL, DIRECT_EV
  * must be a global object.
  *
  * On success, store the completion value in *vp and return true.
  */
 extern bool
 EvalKernel(JSContext *cx, uintN argc, js::Value *vp, EvalType evalType, JSStackFrame *caller,
            JSObject *scopeobj);
 
-extern bool
+extern JS_FRIEND_API(bool)
 IsBuiltinEvalFunction(JSFunction *fun);
 
 }
 #endif /* jsobj_h___ */