mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 872720 - Do not bother calling clearParent in Parser::newRegExp. r=Waldo.
This commit is contained in:
parent
bdb5a217c8
commit
0b147f9c9e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user