mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 17:52:26 -05:00
LibWeb: Return the readable stream error directly instead of as a string
This error is not a string object, it's e.g. a JS::TypeError. This now matches similar handling of writable stream errors.
This commit is contained in:
parent
fd15910adf
commit
5a2260a0bc
Notes:
github-actions[bot]
2024-11-17 22:22:21 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/5a2260a0bc2 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2370
1 changed files with 1 additions and 1 deletions
|
@ -5071,7 +5071,7 @@ GC::Ref<WebIDL::Promise> transform_stream_default_sink_close_algorithm(Transform
|
|||
transform_stream_error(stream, reason);
|
||||
|
||||
// 2. Throw readable.[[storedError]].
|
||||
return WebIDL::SimpleException { WebIDL::SimpleExceptionType::TypeError, readable->stored_error().as_string().utf8_string() };
|
||||
return JS::throw_completion(readable->stored_error());
|
||||
}));
|
||||
|
||||
return react_result;
|
||||
|
|
Loading…
Add table
Reference in a new issue