bun icon indicating copy to clipboard operation
bun copied to clipboard

Implement fs.createReadStream

Open samccone opened this issue 2 years ago • 1 comments

Version

0.1.11

Platform

Darwin sams-mac-studio.lan 21.6.0 Darwin Kernel Version 21.6.0: Sat Jun 18 17:07:22 PDT 2022; root:xnu-8020.140.41~1/RELEASE_ARM64_T6000 arm64

What steps will reproduce the bug?

touch test.txt
echo "import * as fs from 'fs'; fs.createReadStream('test.txt');" > tmp.js
bun tmp.js

How often does it reproduce? Is there a required condition?

100%

What is the expected behavior?

does not raise a system error

What do you see instead?

1 |                                                            │
2 | fs.createReadStream("test.txt");                           │
                             ^                                 │
error: SystemError                                             │
      at /Users/samccone/repos/deconstructed/tmp.js:1:26  
      ```

### Additional information

works in node.

samccone avatar Sep 04 '22 21:09 samccone

It's not implemented yet

It's supposed to say "TODO" but it clearly is not saying that

Jarred-Sumner avatar Sep 07 '22 04:09 Jarred-Sumner

This was implemented in release 0.2.2! 🎉

Electroid avatar Nov 03 '22 01:11 Electroid