mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:57:44 +00:00
LibJS: Rename RegExpLiteral m_content to m_pattern
This is what we call it elsewhere, let's be consistent.
This commit is contained in:
parent
d1a72dc6eb
commit
c93c2dc72c
3 changed files with 12 additions and 10 deletions
|
@ -1791,13 +1791,13 @@ Value NullLiteral::execute(Interpreter& interpreter, GlobalObject&) const
|
|||
void RegExpLiteral::dump(int indent) const
|
||||
{
|
||||
print_indent(indent);
|
||||
outln("{} (/{}/{})", class_name(), content(), flags());
|
||||
outln("{} (/{}/{})", class_name(), pattern(), flags());
|
||||
}
|
||||
|
||||
Value RegExpLiteral::execute(Interpreter& interpreter, GlobalObject& global_object) const
|
||||
{
|
||||
InterpreterNodeScope node_scope { interpreter, *this };
|
||||
return RegExpObject::create(global_object, content(), flags());
|
||||
return RegExpObject::create(global_object, pattern(), flags());
|
||||
}
|
||||
|
||||
void ArrayExpression::dump(int indent) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue