Skip to content

Commit 2394845

Browse files
kennethmyhrashannonbooth
authored andcommitted
LibWeb: Align specification step text with current specification
1 parent 27d139e commit 2394845

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Libraries/LibWeb/Streams/ReadableByteStreamController.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ void ReadableByteStreamController::initialize(JS::Realm& realm)
8383
WebIDL::ExceptionOr<void> ReadableByteStreamController::enqueue(GC::Root<WebIDL::ArrayBufferView>& chunk)
8484
{
8585
// 1. If chunk.[[ByteLength]] is 0, throw a TypeError exception.
86-
// 2. If chunk.[[ViewedArrayBuffer]].[[ArrayBufferByteLength]] is 0, throw a TypeError exception.
86+
// 2. If chunk.[[ViewedArrayBuffer]].[[ByteLength]] is 0, throw a TypeError exception.
8787
if (chunk->byte_length() == 0 || chunk->viewed_array_buffer()->byte_length() == 0)
8888
return WebIDL::SimpleException { WebIDL::SimpleExceptionType::TypeError, "Cannot enqueue chunk with byte length of zero"sv };
8989

0 commit comments

Comments
 (0)