Skip to content

Commit 9db7cc2

Browse files
Update reference-implementation/lib/ReadableStreamDefaultController-impl.js
Co-authored-by: Mattias Buelens <[email protected]>
1 parent 9f0bb24 commit 9db7cc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference-implementation/lib/ReadableStreamDefaultController-impl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ exports.implementation = class ReadableStreamDefaultControllerImpl {
1818
}
1919

2020
enqueue(chunk, options) {
21-
const transferList = options ? options.transfer : undefined;
21+
const transferList = options ? options.transfer : [];
2222
if (transferList.length && !this._isOwning) {
2323
throw new TypeError('The stream is not an owning stream and cannot make use of options');
2424
}

0 commit comments

Comments
 (0)