(No bug): js/src/frontend/Parser.cpp:Parser::comprehensionTail returns pointers, not bools. r=luke in IRC
authorJim Blandy <jimb@mozilla.com>
Mon, 16 Jul 2012 13:41:03 -0700
changeset 104940 1b38b698ff118056915ede61fdd024a3c0b1dd51
parent 104939 808279a147bf3e27465bd030a876beccd163595b
child 104941 1cbe2e404e808f688501ce57f0ddf4b73a8cd274
push idunknown
push userunknown
push dateunknown
reviewersluke
milestone17.0a1
(No bug): js/src/frontend/Parser.cpp:Parser::comprehensionTail returns pointers, not bools. r=luke in IRC
js/src/frontend/Parser.cpp
--- a/js/src/frontend/Parser.cpp
+++ b/js/src/frontend/Parser.cpp
@@ -5299,17 +5299,17 @@ Parser::comprehensionTail(ParseNode *kid
 
     pnp = &pn->pn_expr;
 
     CompExprTransplanter transplanter(kid, this, kind == PNK_SEMI, adjust);
     if (!transplanter.init())
         return NULL;
 
     if (!transplanter.transplant(kid))
-        return false;
+        return NULL;
 
     JS_ASSERT(tc->blockChain && tc->blockChain == pn->pn_objbox->object);
     data.initLet(HoistVars, *tc->blockChain, JSMSG_ARRAY_INIT_TOO_BIG);
 
     do {
         /*
          * FOR node is binary, left is loop control and right is body.  Use
          * index to count each block-local let-variable on the left-hand side