Skip to content

Commit ae56ed0

Browse files
committed
syscall: ignore O_DIRECTORY on Windows for js/wasm
1 parent 6fb7bdc commit ae56ed0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/syscall/fs_js.go

-2
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,6 @@ func Open(path string, openmode int, perm uint32) (int, error) {
9898
if openmode&O_DIRECTORY != 0 {
9999
if nodeDIRECTORY != -1 {
100100
flags |= nodeDIRECTORY
101-
} else {
102-
return 0, errors.New("syscall.Open: O_DIRECTORY is not supported on Windows")
103101
}
104102
}
105103

0 commit comments

Comments
 (0)