mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-20 09:11:53 +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:
parent
3db8ced4c7
commit
3200ff5f4f
Notes:
sideshowbarker
2024-07-19 01:14:44 +09:00
Author: https://github.com/alimpfard
Commit: 3200ff5f4f
Pull-request: https://github.com/SerenityOS/serenity/pull/4103
Reviewed-by: https://github.com/linusg ✅
5 changed files with 12 additions and 12 deletions
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue