Bug 786339 - Remove two implicit conversions from NULL to false in the JS code; r=luke

This commit is contained in:
Ehsan Akhgari 2012-08-28 13:22:42 -04:00
parent b60c0f6f5c
commit 36a43871f4
2 changed files with 2 additions and 2 deletions

View File

@ -335,7 +335,7 @@ frontend::CompileFunctionBody(JSContext *cx, HandleFunction fun, CompileOptions
return false;
if (!NameFunctions(cx, pn))
return NULL;
return false;
if (fn->pn_body) {
JS_ASSERT(fn->pn_body->isKind(PNK_ARGSBODY));

View File

@ -1139,7 +1139,7 @@ ContextStack::saveFrameChain()
{
bool pushedSeg;
if (!ensureOnTop(cx_, REPORT_ERROR, 0, CANT_EXTEND, &pushedSeg))
return NULL;
return false;
JS_ASSERT(pushedSeg);
JS_ASSERT(!hasfp());