Simplify isRegExpObject check (#399)

Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
This commit is contained in:
Robert Fancsik 2019-09-02 13:26:59 +02:00 committed by Hyukwoo Park
commit 387a30267c
8 changed files with 46 additions and 46 deletions

View file

@ -204,9 +204,9 @@ bool RegExpObject::defineOwnProperty(ExecutionState& state, const ObjectProperty
return returnValue;
}
bool RegExpObject::isRegExpObject(ExecutionState& state)
bool RegExpObject::isRegExpObject()
{
return this->getPrototypeObject(state)->isRegExpPrototypeObject() || isRegExpPrototypeObject();
return true;
}
void RegExpObject::parseOption(ExecutionState& state, const String* optionString)