Bug 489552 - Earth Day Recycling for Fun Kids - Assertion failure: RecycleFuncNameKids, at ../jsparse.cpp:444 (r=mrbkap).
authorBrendan Eich <brendan@mozilla.org>
Wed, 22 Apr 2009 15:30:36 -0700
changeset 27883 4b814acb49b034379ecaca7583db41bf35a9d734
parent 27882 3ad791b6a1b455b1a02b1aea0cf3287ce6eb3094
child 27884 e61467ec4978abab707d4b5faf885b06651c2a3d
push id6760
push userrsayre@mozilla.com
push dateWed, 29 Apr 2009 01:51:23 +0000
treeherdermozilla-central@f5a2dfe49558 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmrbkap
bugs489552
milestone1.9.2a1pre
Bug 489552 - Earth Day Recycling for Fun Kids - Assertion failure: RecycleFuncNameKids, at ../jsparse.cpp:444 (r=mrbkap).
js/src/jsparse.cpp
--- a/js/src/jsparse.cpp
+++ b/js/src/jsparse.cpp
@@ -436,17 +436,17 @@ RecycleFuncNameKids(JSParseNode *pn, JST
          */
         if (!pn->pn_used && pn->pn_expr) {
             RecycleTree(pn->pn_expr, tc);
             pn->pn_expr = NULL;
         }
         break;
 
       default:
-        JS_NOT_REACHED("RecycleFuncNameKids");
+        JS_ASSERT(PN_TYPE(pn) == TOK_FUNCTION);
     }
 }
 
 static JSParseNode *
 NewOrRecycledNode(JSTreeContext *tc)
 {
     JSParseNode *pn, *pn2;