1
Fork 0
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:
AnotherTest 2020-11-27 17:14:50 +03:30 committed by Andreas Kling
parent 3db8ced4c7
commit 3200ff5f4f
5 changed files with 12 additions and 12 deletions

View file

@ -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;
};