summaryrefslogtreecommitdiff
path: root/Userland/Utilities/js.cpp
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2023-02-17 20:15:10 +0000
committerAndreas Kling <kling@serenityos.org>2023-02-19 17:15:47 +0100
commit2db168acc112e8f032d57f8225a8122c0e7f4207 (patch)
treeadd8e7858b1fe3861624a8392703d6172e4fe30c /Userland/Utilities/js.cpp
parent3c5090e17257667514156900a552d875b46da27d (diff)
downloadserenity-2db168acc112e8f032d57f8225a8122c0e7f4207.zip
LibTextCodec+Everywhere: Port Decoders to new Strings
Diffstat (limited to 'Userland/Utilities/js.cpp')
-rw-r--r--Userland/Utilities/js.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Utilities/js.cpp b/Userland/Utilities/js.cpp
index 855f3b1d27..162741661f 100644
--- a/Userland/Utilities/js.cpp
+++ b/Userland/Utilities/js.cpp
@@ -885,7 +885,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
auto decoder = TextCodec::decoder_for("windows-1252"sv);
VERIFY(decoder.has_value());
- auto utf8_source = TextCodec::convert_input_to_utf8_using_given_decoder_unless_there_is_a_byte_order_mark(*decoder, source);
+ auto utf8_source = TRY(TextCodec::convert_input_to_utf8_using_given_decoder_unless_there_is_a_byte_order_mark(*decoder, source));
builder.append(utf8_source);
}
}