mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-07 00:56:14 +00:00
LibJS+js: Rename RegExp.{content => pattern}
The spec talks about it as 'pattern', so let's use that instead.
This commit is contained in:
committed by
Andreas Kling
parent
3db8ced4c7
commit
3200ff5f4f
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user