Add an assertion per bug 626436 comments 7-9. rs=brendan.

--HG--
extra : rebase_source : 96bda82ab2b558ff794072c0b128a22ee46d7da1
This commit is contained in:
Jason Orendorff 2011-01-20 17:41:59 -06:00
parent 452f71a352
commit ec078d1750

View File

@ -165,6 +165,7 @@ JSParseNode::become(JSParseNode *pn2)
pn_funbox->node = this;
} else if (pn_arity == PN_LIST && !pn_head) {
/* Empty list: fix up the pn_tail pointer. */
JS_ASSERT(pn_count == 0);
JS_ASSERT(pn_tail == &pn2->pn_head);
pn_tail = &pn_head;
}