mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 20:45:14 +00:00
LibWeb: Port TypeError in UnderlyingSource from ByteString
This commit is contained in:
parent
6b88fc2e05
commit
7067c5c972
Notes:
sideshowbarker
2024-07-17 16:23:55 +09:00
Author: https://github.com/shannonbooth Commit: https://github.com/SerenityOS/serenity/commit/7067c5c972 Pull-request: https://github.com/SerenityOS/serenity/pull/22468
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ JS::ThrowCompletionOr<UnderlyingSource> UnderlyingSource::from_value(JS::VM& vm,
|
|||
if (type_string == "bytes"sv)
|
||||
underlying_source.type = ReadableStreamType::Bytes;
|
||||
else
|
||||
return vm.throw_completion<JS::TypeError>(ByteString::formatted("Unknown stream type '{}'", type_value));
|
||||
return vm.throw_completion<JS::TypeError>(MUST(String::formatted("Unknown stream type '{}'", type_value)));
|
||||
}
|
||||
|
||||
if (TRY(object.has_property("autoAllocateChunkSize"))) {
|
||||
|
|
Loading…
Add table
Reference in a new issue