mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-04 23:29:52 +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
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue