mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:38:10 +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
5 changed files with 12 additions and 12 deletions
|
@ -35,18 +35,18 @@ class RegExpObject : public Object {
|
|||
JS_OBJECT(RegExpObject, Object);
|
||||
|
||||
public:
|
||||
static RegExpObject* create(GlobalObject&, String content, String flags);
|
||||
static RegExpObject* create(GlobalObject&, String pattern, String flags);
|
||||
|
||||
RegExpObject(String content, String flags, Object& prototype);
|
||||
RegExpObject(String pattern, String flags, Object& prototype);
|
||||
virtual ~RegExpObject() override;
|
||||
|
||||
const String& content() const { return m_content; }
|
||||
const String& pattern() const { return m_pattern; }
|
||||
const String& flags() const { return m_flags; }
|
||||
|
||||
private:
|
||||
virtual bool is_regexp_object() const override { return true; }
|
||||
|
||||
String m_content;
|
||||
String m_pattern;
|
||||
String m_flags;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue