Bug 1082957 - Make it possible to build the JS engine in debug mode without JS_CRASH_DIAGNOSTICS; r=billm
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 14 Oct 2014 22:04:25 -0400
changeset 210487 3de05e0f076dde874cce4e6ed39fa85268f486fd
parent 210486 9d7c9f78230b21a33bc40a03bdcaf05f5d9c6824
child 210488 9fe4537e244f910381f82afa33ca94aae5a9c1f2
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersbillm
bugs1082957
milestone36.0a1
Bug 1082957 - Make it possible to build the JS engine in debug mode without JS_CRASH_DIAGNOSTICS; r=billm
js/src/jscntxtinlines.h
--- a/js/src/jscntxtinlines.h
+++ b/js/src/jscntxtinlines.h
@@ -157,17 +157,17 @@ assertSameCompartment(ThreadSafeContext 
     START_ASSERT_SAME_COMPARTMENT();
     c.check(t1);
 #endif
 }
 
 template <class T1> inline void
 assertSameCompartmentDebugOnly(ThreadSafeContext *cx, const T1 &t1)
 {
-#ifdef DEBUG
+#if defined(DEBUG) && defined(JS_CRASH_DIAGNOSTICS)
     START_ASSERT_SAME_COMPARTMENT();
     c.check(t1);
 #endif
 }
 
 template <class T1, class T2> inline void
 assertSameCompartment(ThreadSafeContext *cx, const T1 &t1, const T2 &t2)
 {