[INFER] Don't check newly pushed StackSegments in StackSpace::containingSegment, bug 649477.

This commit is contained in:
Brian Hackett 2011-04-13 06:53:46 -07:00
parent fc65b95530
commit d8c95f63d9

View File

@ -2050,7 +2050,7 @@ StackSegment *
StackSpace::containingSegment(const JSStackFrame *target)
{
for (StackSegment *seg = currentSegment; seg; seg = seg->getPreviousInMemory()) {
if (seg->contains(target))
if (seg->inContext() && seg->contains(target))
return seg;
}
JS_NOT_REACHED("frame not in stack space");