Fix warning: no return value in JS_IsInRequest if !JS_THREADSAFE. no bug, rs=bz.
authorJason Orendorff <jorendorff@mozilla.com>
Tue, 07 Dec 2010 09:03:05 -0600
changeset 58978 98adda4dcc9c9e6c6df157bab8e37b3320261d09
parent 58977 fc0384edf67bc8dbc7c502a1f56481e7dbf98025
child 58979 37acb2ee51b1b6a5d0913a8070c41258f1cba8aa
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewersbz
milestone2.0b8pre
Fix warning: no return value in JS_IsInRequest if !JS_THREADSAFE. no bug, rs=bz.
js/src/jsapi.cpp
--- a/js/src/jsapi.cpp
+++ b/js/src/jsapi.cpp
@@ -942,16 +942,18 @@ JS_ResumeRequest(JSContext *cx, jsrefcou
 }
 
 JS_PUBLIC_API(JSBool)
 JS_IsInRequest(JSContext *cx)
 {
 #ifdef JS_THREADSAFE
     JS_ASSERT(CURRENT_THREAD_IS_ME(cx->thread));
     return JS_THREAD_DATA(cx)->requestDepth != 0;
+#else
+    return false;
 #endif
 }
 
 JS_PUBLIC_API(void)
 JS_Lock(JSRuntime *rt)
 {
     JS_LOCK_RUNTIME(rt);
 }