summaryrefslogtreecommitdiff
path: root/patches/IsInRequest-949195.patch
blob: cdf5a4ee02e4ea04b2205dac30700db0257f74f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# HG changeset patch
# Parent cd8909c56cccd12a576d731982a2b98be6fd1a96
Bug 949195 - Only use IsInRequest when JS_DEBUG.

diff --git a/js/public/RootingAPI.h b/js/public/RootingAPI.h
--- a/js/public/RootingAPI.h
+++ b/js/public/RootingAPI.h
@@ -532,7 +532,7 @@ class MOZ_STACK_CLASS Rooted : public js
 {
     void init(JSContext *cxArg) {
         MOZ_ASSERT(cxArg);
-#ifdef JS_THREADSAFE
+#if defined(JS_DEBUG) && defined(JS_THREADSAFE)
         MOZ_ASSERT(js::IsInRequest(cxArg));
 #endif
 #if defined(JSGC_ROOT_ANALYSIS) || defined(JSGC_USE_EXACT_ROOTING)