diff options
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) |