From 7067c5c9722b357659a937f3d7a24312e17a3c99 Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Thu, 28 Dec 2023 12:39:05 +1300 Subject: [PATCH] LibWeb: Port TypeError in UnderlyingSource from ByteString --- Userland/Libraries/LibWeb/Streams/UnderlyingSource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/Streams/UnderlyingSource.cpp b/Userland/Libraries/LibWeb/Streams/UnderlyingSource.cpp index 644f468b8d..b2d92f6cb9 100644 --- a/Userland/Libraries/LibWeb/Streams/UnderlyingSource.cpp +++ b/Userland/Libraries/LibWeb/Streams/UnderlyingSource.cpp @@ -35,7 +35,7 @@ JS::ThrowCompletionOr UnderlyingSource::from_value(JS::VM& vm, if (type_string == "bytes"sv) underlying_source.type = ReadableStreamType::Bytes; else - return vm.throw_completion(ByteString::formatted("Unknown stream type '{}'", type_value)); + return vm.throw_completion(MUST(String::formatted("Unknown stream type '{}'", type_value))); } if (TRY(object.has_property("autoAllocateChunkSize"))) {