[INFER] Fix orange.
authorBrian Hackett <bhackett1024@gmail.com>
Fri, 22 Jul 2011 10:25:57 -0700
changeset 76057 5120ea3deef5da64dfdae06fd4332402d20fbaae
parent 76056 85b77c0781b61ca17bd9be12f3ec36d63b9cc507
child 76058 7e3ed488cd20dcfa737babfb653897747e765047
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
milestone8.0a1
[INFER] Fix orange.
js/src/jsinfer.cpp
--- a/js/src/jsinfer.cpp
+++ b/js/src/jsinfer.cpp
@@ -5195,17 +5195,17 @@ TypeSet::sweep(JSContext *cx, JSCompartm
             }
             setBaseObjectCount(objectCount);
             cx->free_(oldArray);
         }
     } else if (objectCount == 1) {
         TypeObjectKey *object = (TypeObjectKey *) objectSet;
         if (IsAboutToBeFinalized(cx, object)) {
             objectSet = NULL;
-            objectCount = 0;
+            setBaseObjectCount(0);
         }
     }
 
     /* All constraints are allocated from the pool wiped out on each GC. */
     constraintList = NULL;
 }
 
 inline void