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
commit 3200ff5f4f
Notes: sideshowbarker 2024-07-19 01:14:44 +09:00
5 changed files with 12 additions and 12 deletions

View file

@ -235,7 +235,7 @@ static void print_error(const JS::Object& object, HashTable<JS::Object*>&)
static void print_regexp(const JS::Object& object, HashTable<JS::Object*>&)
{
auto& regexp = static_cast<const JS::RegExpObject&>(object);
out("\033[34;1m/{}/{}\033[0m", regexp.content(), regexp.flags());
out("\033[34;1m/{}/{}\033[0m", regexp.pattern(), regexp.flags());
}
static void print_value(JS::Value value, HashTable<JS::Object*>& seen_objects)