No bug - Warning fix for 91357:fa24b215d49e; r=luke
authorTerrence Cole <terrence@mozilla.com>
Wed, 11 Apr 2012 10:32:50 -0700
changeset 91454 5ed7fadb52aadc7f1b08e72704b86322cd978da0
parent 91453 d770f8c6e19b7ab64fb60adbe458429c9f434d1d
child 91455 e819f766c5868df9148cb9183f1053a93bb18937
push id22445
push usereakhgari@mozilla.com
push dateThu, 12 Apr 2012 16:19:55 +0000
treeherdermozilla-central@901dfde60183 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersluke
bugs91357
milestone14.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
No bug - Warning fix for 91357:fa24b215d49e; r=luke
js/src/frontend/Parser.cpp
--- a/js/src/frontend/Parser.cpp
+++ b/js/src/frontend/Parser.cpp
@@ -5596,17 +5596,17 @@ Parser::generatorExpr(ParseNode *kid)
         genfn->pn_pos.end = body->pn_pos.end = tokenStream.currentToken().pos.end;
 
         JSAtom *arguments = gentc.parser->context->runtime->atomState.argumentsAtom;
         if (AtomDefnPtr p = gentc.lexdeps->lookup(arguments)) {
             Definition *dn = p.value();
             ParseNode *errorNode = dn->dn_uses ? dn->dn_uses : body;
             gentc.parser->reportErrorNumber(errorNode, JSREPORT_ERROR, JSMSG_BAD_GENEXP_BODY,
                                              js_arguments_str);
-            return false;
+            return NULL;
         }
 
         if (!LeaveFunction(genfn, &gentc))
             return NULL;
     }
 
     /*
      * Our result is a call expression that invokes the anonymous generator