Fix 351497, regression from last patch.

This commit is contained in:
brendan%mozilla.org 2006-09-06 07:05:57 +00:00
parent 7debe644bf
commit 8ae1726f07

View File

@ -2735,6 +2735,7 @@ Statement(JSContext *cx, JSTokenStream *ts, JSTreeContext *tc)
(void) js_GetToken(cx, ts);
if (js_PeekToken(cx, ts) == TOK_LP) {
pn1 = LetBlock(cx, ts, tc, JS_FALSE);
tt = TOK_LEXICALSCOPE;
} else {
pnlet = PushLexicalScope(cx, ts, tc, &blockInfo);
if (!pnlet)