mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 11:29:02 +00:00
Fix bug in fs.openSync
This commit is contained in:
@@ -971,7 +971,7 @@ pub const FileSystemFlags = enum(Mode) {
|
||||
|
||||
if (val.isNumber()) {
|
||||
const number = val.toInt32();
|
||||
if (!(number > 0o000 and number < 0o777)) {
|
||||
if (!(number >= 0o000 and number <= 0o777)) {
|
||||
JSC.throwInvalidArguments(
|
||||
"Invalid integer mode: must be a number between 0o000 and 0o777",
|
||||
.{},
|
||||
|
||||
Reference in New Issue
Block a user