| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -508,6 +508,8 @@ class ReadableStream { | |||
| 508 | 508 | return customInspect(depth, options, this[kType], { | |
| 509 | 509 | locked: this.locked, | |
| 510 | 510 | state: this[kState].state, | |
| 511 | + supportsBYOB: | ||
| 512 | + this[kState].controller instanceof ReadableByteStreamController, | ||
| 511 | 513 | }); | |
| 512 | 514 | } | |
| 513 | 515 | ||
@@ -1745,7 +1747,7 @@ function setupReadableStreamBYOBReader(reader, stream) { | |||
| 1745 | 1747 | controller, | |
| 1746 | 1748 | } = stream[kState]; | |
| 1747 | 1749 | if (!isReadableByteStreamController(controller)) | |
| 1748 | - throw new ERR_INVALID_ARG_VALUE('reader', reader, 'must be a byte stream'); | ||
| 1750 | + throw new ERR_INVALID_ARG_VALUE('stream', stream, 'must be a byte stream'); | ||
| 1749 | 1751 | readableStreamReaderGenericInitialize(reader, stream); | |
| 1750 | 1752 | reader[kState].readIntoRequests = []; | |
| 1751 | 1753 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1410,10 +1410,12 @@ class Source { | |||
| 1410 | 1410 | ||
| 1411 | 1411 | assert.strictEqual( | |
| 1412 | 1412 | inspect(readable), | |
| 1413 | - 'ReadableStream { locked: false, state: \'readable\' }'); | ||
| 1413 | + 'ReadableStream { locked: false, state: \'readable\', ' + | ||
| 1414 | + 'supportsBYOB: false }'); | ||
| 1414 | 1415 | assert.strictEqual( | |
| 1415 | 1416 | inspect(readable, { depth: null }), | |
| 1416 | - 'ReadableStream { locked: false, state: \'readable\' }'); | ||
| 1417 | + 'ReadableStream { locked: false, state: \'readable\', ' + | ||
| 1418 | + 'supportsBYOB: false }'); | ||
| 1417 | 1419 | assert.strictEqual( | |
| 1418 | 1420 | inspect(readable, { depth: 0 }), | |
| 1419 | 1421 | 'ReadableStream [Object]'); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments