diff options
author | Linus Groh <mail@linusgroh.de> | 2022-04-03 15:19:33 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-04-03 15:19:33 +0100 |
commit | 5b48912d35d2cd7cbb0dde60a594429abadbd806 (patch) | |
tree | 4ec1f577f82f2ca22f24782bb4832263e785d5cc /Userland/Libraries/LibJS/MarkupGenerator.cpp | |
parent | f2c02077bae909a23e08c1b8c9f6800dbe3b7133 (diff) | |
download | serenity-5b48912d35d2cd7cbb0dde60a594429abadbd806.zip |
LibJS: Remove a bunch of gratuitous JS namespace qualifiers
Diffstat (limited to 'Userland/Libraries/LibJS/MarkupGenerator.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/MarkupGenerator.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibJS/MarkupGenerator.cpp b/Userland/Libraries/LibJS/MarkupGenerator.cpp index 4f9d4bdc88..eae5ad4c80 100644 --- a/Userland/Libraries/LibJS/MarkupGenerator.cpp +++ b/Userland/Libraries/LibJS/MarkupGenerator.cpp @@ -142,16 +142,16 @@ void MarkupGenerator::function_to_html(Object const& function, StringBuilder& ht void MarkupGenerator::date_to_html(Object const& date, StringBuilder& html_output, HashTable<Object*>&) { - html_output.appendff("Date {}", JS::to_date_string(static_cast<JS::Date const&>(date).date_value())); + html_output.appendff("Date {}", to_date_string(static_cast<Date const&>(date).date_value())); } void MarkupGenerator::error_to_html(Object const& object, StringBuilder& html_output, HashTable<Object*>&) { auto& vm = object.vm(); - auto name = object.get_without_side_effects(vm.names.name).value_or(JS::js_undefined()); - auto message = object.get_without_side_effects(vm.names.message).value_or(JS::js_undefined()); + auto name = object.get_without_side_effects(vm.names.name).value_or(js_undefined()); + auto message = object.get_without_side_effects(vm.names.message).value_or(js_undefined()); if (name.is_accessor() || message.is_accessor()) { - html_output.append(wrap_string_in_style(JS::Value(&object).to_string_without_side_effects(), StyleType::Invalid)); + html_output.append(wrap_string_in_style(Value(&object).to_string_without_side_effects(), StyleType::Invalid)); } else { auto name_string = name.to_string_without_side_effects(); auto message_string = message.to_string_without_side_effects(); |