bun icon indicating copy to clipboard operation
bun copied to clipboard

throwIfNoEntry isn't acknowledged in fs.statSync

Open miklosme opened this issue 2 years ago • 0 comments

What version of Bun is running?

0.2.2

What platform is your computer?

Darwin 21.6.0 Darwin Kernel Version 21.6.0: Sat Jun 18 17:07:28 PDT 2022; root:xnu-8020.140.41~1/RELEASE_ARM64_T8110 arm64 arm

What steps can reproduce the bug?

import fs from 'fs';

fs.statSync('file_that_does_not_exist', {
  throwIfNoEntry: false,
});

console.log('done');

The above code reaches the console.log in Node, but throws in Bun.

miklosme avatar Dec 04 '22 23:12 miklosme