mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-03 14:50:02 +00:00
LibWeb: Align specification step text with current specification
This commit is contained in:
parent
27d139e817
commit
2394845d58
Notes:
github-actions[bot]
2025-07-20 00:32:25 +00:00
Author: https://github.com/kennethmyhra
Commit: 2394845d58
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5445
Reviewed-by: https://github.com/shannonbooth
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ void ReadableByteStreamController::initialize(JS::Realm& realm)
|
|||
WebIDL::ExceptionOr<void> ReadableByteStreamController::enqueue(GC::Root<WebIDL::ArrayBufferView>& chunk)
|
||||
{
|
||||
// 1. If chunk.[[ByteLength]] is 0, throw a TypeError exception.
|
||||
// 2. If chunk.[[ViewedArrayBuffer]].[[ArrayBufferByteLength]] is 0, throw a TypeError exception.
|
||||
// 2. If chunk.[[ViewedArrayBuffer]].[[ByteLength]] is 0, throw a TypeError exception.
|
||||
if (chunk->byte_length() == 0 || chunk->viewed_array_buffer()->byte_length() == 0)
|
||||
return WebIDL::SimpleException { WebIDL::SimpleExceptionType::TypeError, "Cannot enqueue chunk with byte length of zero"sv };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue