Bug 507675: relax too-strict assert on scope chain condition, r=gal

This commit is contained in:
David Mandelin 2009-07-31 17:21:45 -07:00
Родитель 65e30357eb
Коммит f93d3ba4ac
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -11330,7 +11330,7 @@ TraceRecorder::record_JSOP_BINDNAME()
* don't need to do that on trace because we will leave trace if the
* scope ever changes, so the result of the lookup cannot change.
*/
JS_ASSERT(obj == cx->fp->scopeChain);
JS_ASSERT(obj == cx->fp->scopeChain || obj == OBJ_GET_PARENT(cx, cx->fp->scopeChain));
stack(0, stobj_get_parent(get(&cx->fp->argv[-2])));
return JSRS_CONTINUE;
}