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