Backed out changeset 46a0f202ff0b (bug 958980) for bustage. a=backout
authorRyan VanderMeulen <ryanvm@gmail.com>
Thu, 23 Jan 2014 14:47:49 -0500
changeset 167986 abd21140bea78b38edc5a13d15b8cb41440ca5e0
parent 167985 3cad88283395ad5ff64462496b459f22ced89a8a
child 167987 94467c9bd6cd6fab5c7238c393bc96e411c59968
push id428
push userbbajaj@mozilla.com
push dateTue, 28 Jan 2014 00:16:25 +0000
treeherdermozilla-release@cd72a7ff3a75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbackout
bugs958980
milestone27.0
backs out46a0f202ff0b8f5734b1b590ee93cb34b0eeab6c
Backed out changeset 46a0f202ff0b (bug 958980) for bustage. a=backout
js/src/vm/Debugger.cpp
--- a/js/src/vm/Debugger.cpp
+++ b/js/src/vm/Debugger.cpp
@@ -2568,20 +2568,17 @@ class Debugger::ScriptQuery {
     }
 
     /*
      * If |script| matches this query, append it to |vector| or place it in
      * |innermostForCompartment|, as appropriate. Set |oom| if an out of memory
      * condition occurred.
      */
     void consider(JSScript *script) {
-        // We check for presence of script->code() because it is possible that
-        // the script was created and thus exposed to GC, but *not* fully
-        // initialized from fullyInit{FromEmitter,Trivial} due to errors.
-        if (oom || script->selfHosted() || !script->code())
+        if (oom || script->selfHosted)
             return;
         JSCompartment *compartment = script->compartment();
         if (!compartments.has(compartment))
             return;
         if (urlCString.ptr()) {
             if (!script->filename() || strcmp(script->filename(), urlCString.ptr()) != 0)
                 return;
         }