1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-22 17:25:07 +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

@ -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)