Avoid gcc-on-Mac warning.

git-svn-id: svn://10.0.0.236/trunk@209841 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
brendan%mozilla.org 2006-09-12 06:23:51 +00:00
parent f87b8e7017
commit b709f14267

View File

@ -3552,8 +3552,8 @@ Variables(JSContext *cx, JSTokenStream *ts, JSTreeContext *tc)
JS_ASSERT(let || tt == TOK_VAR);
/* Make sure that Statement set the tree context up correctly. */
scopeStmt = tc->topScopeStmt;
if (let) {
scopeStmt = tc->topScopeStmt;
while (scopeStmt && !(scopeStmt->flags & SIF_SCOPE)) {
JS_ASSERT(!STMT_MAYBE_SCOPE(scopeStmt));
scopeStmt = scopeStmt->downScope;