We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27d139e commit 2394845Copy full SHA for 2394845
Libraries/LibWeb/Streams/ReadableByteStreamController.cpp
@@ -83,7 +83,7 @@ void ReadableByteStreamController::initialize(JS::Realm& realm)
83
WebIDL::ExceptionOr<void> ReadableByteStreamController::enqueue(GC::Root<WebIDL::ArrayBufferView>& chunk)
84
{
85
// 1. If chunk.[[ByteLength]] is 0, throw a TypeError exception.
86
- // 2. If chunk.[[ViewedArrayBuffer]].[[ArrayBufferByteLength]] is 0, throw a TypeError exception.
+ // 2. If chunk.[[ViewedArrayBuffer]].[[ByteLength]] is 0, throw a TypeError exception.
87
if (chunk->byte_length() == 0 || chunk->viewed_array_buffer()->byte_length() == 0)
88
return WebIDL::SimpleException { WebIDL::SimpleExceptionType::TypeError, "Cannot enqueue chunk with byte length of zero"sv };
89
0 commit comments