mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-07 20:17:37 +00:00
Bug 898692 - Avoid wasted work in ArrayBufferObject::obj_trace(). r=sphink
This commit is contained in:
parent
11ffdae3d4
commit
3439586c22
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user