LibJS+js: Rename RegExp.{content => pattern}

The spec talks about it as 'pattern', so let's use that instead.
This commit is contained in:
AnotherTest 2020-11-27 17:14:50 +03:30 committed by Andreas Kling
parent 3db8ced4c7
commit 3200ff5f4f
Notes: sideshowbarker 2024-07-19 01:14:44 +09:00
5 changed files with 12 additions and 12 deletions

View file

@ -33,14 +33,14 @@
namespace JS {
RegExpObject* RegExpObject::create(GlobalObject& global_object, String content, String flags)
RegExpObject* RegExpObject::create(GlobalObject& global_object, String pattern, String flags)
{
return global_object.heap().allocate<RegExpObject>(global_object, content, flags, *global_object.regexp_prototype());
return global_object.heap().allocate<RegExpObject>(global_object, pattern, flags, *global_object.regexp_prototype());
}
RegExpObject::RegExpObject(String content, String flags, Object& prototype)
RegExpObject::RegExpObject(String pattern, String flags, Object& prototype)
: Object(prototype)
, m_content(content)
, m_pattern(pattern)
, m_flags(flags)
{
}