Follow-up to patch for bug 669369. Fix silly mistake Ms2ger noted in comment 3.

--HG--
extra : rebase_source : 3a2d25cc8b77a23a7a51da9719c4ee95a7dc66b2
This commit is contained in:
Jason Orendorff 2011-08-31 10:28:36 -05:00
parent 31dcf08260
commit effb3876c7

View File

@ -2476,7 +2476,7 @@ Parser::setFunctionKinds(JSFunctionBox *funbox, uint32 *tcflags)
} else if (funbox->inAnyDynamicScope()) { } else if (funbox->inAnyDynamicScope()) {
JS_ASSERT(!fun->isNullClosure()); JS_ASSERT(!fun->isNullClosure());
} else { } else {
uintN hasUpvars = false; bool hasUpvars = false;
bool canFlatten = true; bool canFlatten = true;
if (pn->pn_type == TOK_UPVARS) { if (pn->pn_type == TOK_UPVARS) {