diff options
author | AnotherTest <ali.mpfard@gmail.com> | 2020-11-27 17:14:50 +0330 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-11-27 21:32:41 +0100 |
commit | 3200ff5f4f424b5938d9e7e2a411da5e6963ad1c (patch) | |
tree | 10775ea9d7a4a4193a22eb04662b48e9f5592f01 /Userland | |
parent | 3db8ced4c7a3b17b3787892748a38824b2ebe95d (diff) | |
download | serenity-3200ff5f4f424b5938d9e7e2a411da5e6963ad1c.zip |
LibJS+js: Rename RegExp.{content => pattern}
The spec talks about it as 'pattern', so let's use that instead.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/js.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/js.cpp b/Userland/js.cpp index 849ebf0580..6163ea91f5 100644 --- a/Userland/js.cpp +++ b/Userland/js.cpp @@ -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) |