mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
LibWeb: Throw the correct object when enqueuing to a readable stream
This commit is contained in:
parent
4c8015c1f6
commit
22e97332fc
Notes:
sideshowbarker
2024-07-17 08:55:54 +09:00
Author: https://github.com/mattco98 Commit: https://github.com/SerenityOS/serenity/commit/22e97332fc Pull-request: https://github.com/SerenityOS/serenity/pull/18539 Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/trflynn89
@ -513,7 +513,8 @@ WebIDL::ExceptionOr<void> readable_stream_default_controller_enqueue(ReadableStr
|
||||
readable_stream_default_controller_error(controller, throw_completion.value().value());
|
||||
|
||||
// 2. Return enqueueResult.
|
||||
return enqueue_result;
|
||||
// Note: We need to return the throw_completion object here, as enqueue needs to throw the same object that the controller is errored with
|
||||
return throw_completion;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user