Backed out changeset 77f4622e2000 (bug 979481)
authorCarsten "Tomcat" Book <cbook@mozilla.com>
Mon, 10 Mar 2014 12:31:31 +0100
changeset 190939 3692e79a43f9f32efcc146791238c3a39008610e
parent 190938 ddc516774998afcc8088c1489216dfea3685f6ff
child 190940 29175da65d44e0f3ab942d7fd64dd8113fef5897
push id474
push userasasaki@mozilla.com
push dateMon, 02 Jun 2014 21:01:02 +0000
treeherdermozilla-release@967f4cf1b31c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs979481
milestone30.0a1
backs out77f4622e20002af05aa733573f09d2135747aecb
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backed out changeset 77f4622e2000 (bug 979481)
js/src/jscompartment.h
--- a/js/src/jscompartment.h
+++ b/js/src/jscompartment.h
@@ -528,17 +528,16 @@ inline js::Handle<js::GlobalObject*>
 ExclusiveContext::global() const
 {
     /*
      * It's safe to use |unsafeGet()| here because any compartment that is
      * on-stack will be marked automatically, so there's no need for a read
      * barrier on it. Once the compartment is popped, the handle is no longer
      * safe to use.
      */
-    MOZ_ASSERT(compartment_, "Caller needs to enter a compartment first");
     return Handle<GlobalObject*>::fromMarkedLocation(compartment_->global_.unsafeGet());
 }
 
 class AssertCompartmentUnchanged
 {
   public:
     AssertCompartmentUnchanged(JSContext *cx
                                 MOZ_GUARD_OBJECT_NOTIFIER_PARAM)