Bug 872720 - Do not bother calling clearParent in Parser::newRegExp. r=Waldo.

This commit is contained in:
Jason Orendorff 2013-06-06 22:47:23 -05:00
parent bdb5a217c8
commit 0b147f9c9e

View File

@ -6541,13 +6541,6 @@ Parser<FullParseHandler>::newRegExp(const jschar *buf, size_t length, RegExpFlag
if (!reobj)
return NULL;
if (!compileAndGo) {
if (!JSObject::clearParent(context, reobj))
return NULL;
if (!JSObject::clearType(context, reobj))
return NULL;
}
pn->pn_objbox = newObjectBox(reobj);
if (!pn->pn_objbox)
return NULL;