mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 00:55:37 +00:00
Bug 997590 (part 1) - Remove a dead else-branch. r=sstangl.
--HG-- extra : rebase_source : e126b0c5189f7845b7d6c1fc1a65aaca4d7dab12
This commit is contained in:
parent
8d8caa847d
commit
237a8118d3
@ -6910,11 +6910,8 @@ Parser<ParseHandler>::newRegExp()
|
||||
RegExpFlag flags = tokenStream.currentToken().regExpFlags();
|
||||
|
||||
Rooted<RegExpObject*> reobj(context);
|
||||
if (RegExpStatics *res = context->global()->getRegExpStatics())
|
||||
reobj = RegExpObject::create(context, res, chars, length, flags, &tokenStream);
|
||||
else
|
||||
reobj = RegExpObject::createNoStatics(context, chars, length, flags, &tokenStream);
|
||||
|
||||
RegExpStatics *res = context->global()->getRegExpStatics();
|
||||
reobj = RegExpObject::create(context, res, chars, length, flags, &tokenStream);
|
||||
if (!reobj)
|
||||
return null();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user