| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 37a6ce1 commit 8113220
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1480,7 +1480,7 @@ const { Readable } = require('node:stream'); | |||
| 1480 | 1480 | const { TextEncoder } = require('node:util'); | |
| 1481 | 1481 | ||
| 1482 | 1482 | const encoder = new TextEncoder(); | |
| 1483 | - const dataArray = encoder.encode(['hello world from consumers!']); | ||
| 1483 | + const dataArray = encoder.encode('hello world from consumers!'); | ||
| 1484 | 1484 | const readable = Readable.from(dataArray); | |
| 1485 | 1485 | arrayBuffer(readable).then((data) => { | |
| 1486 | 1486 | console.log(`from readable: ${data.byteLength}`); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments