Bug 898692 - Avoid wasted work in ArrayBufferObject::obj_trace(). r=sphink

This commit is contained in:
Po-Chun Chang 2013-08-12 08:52:01 -04:00
parent 11ffdae3d4
commit 3439586c22

View File

@ -704,9 +704,11 @@ ArrayBufferObject::obj_trace(JSTracer *trc, JSObject *obj)
p = GetViewList(p)->bufferLink())
{
if (p == obj)
{
JS_ASSERT(!found);
found = true;
}
}
JS_ASSERT(found);
#endif
}
}