Bug 997590 (part 1) - Remove a dead else-branch. r=sstangl.

--HG--
extra : rebase_source : e126b0c5189f7845b7d6c1fc1a65aaca4d7dab12
This commit is contained in:
Nicholas Nethercote 2014-04-22 20:12:33 -07:00
parent 8d8caa847d
commit 237a8118d3

View File

@ -6910,11 +6910,8 @@ Parser<ParseHandler>::newRegExp()
RegExpFlag flags = tokenStream.currentToken().regExpFlags(); RegExpFlag flags = tokenStream.currentToken().regExpFlags();
Rooted<RegExpObject*> reobj(context); Rooted<RegExpObject*> reobj(context);
if (RegExpStatics *res = context->global()->getRegExpStatics()) RegExpStatics *res = context->global()->getRegExpStatics();
reobj = RegExpObject::create(context, res, chars, length, flags, &tokenStream); reobj = RegExpObject::create(context, res, chars, length, flags, &tokenStream);
else
reobj = RegExpObject::createNoStatics(context, chars, length, flags, &tokenStream);
if (!reobj) if (!reobj)
return null(); return null();