8000 add O_DIRECTORY to fs.constants by hajimehoshi · Pull Request #71 · agnivade/wasmbrowsertest · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

add O_DIRECTORY to fs.constants #71

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 31, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@
return fsPath + "/" + path
}
function overrideFS(fs) {
// The fs.constants are read at https://github.com/golang/go/blob/561a5079057e3a660ab638e1ba957a96c4ff3fd1/src/syscall/fs_js.go#L25
// These values are pulled from https://github.com/golang/go/blob/561a5079057e3a660ab638e1ba957a96c4ff3fd1/src/syscall/syscall_js.go#L126
// The fs.constants are read at https://github.com/golang/go/blob/8071f2a1697c2a8d7e93fb1f45285f18303ddc76/src/syscall/fs_js.go#L25
// These values are pulled from https://github.com/golang/go/blob/8071f2a1697c2a8d7e93fb1f45285f18303ddc76/src/syscall/syscall_js.go#L126
fs.constants = { O_WRONLY: 1, O_RDWR: 2,
O_CREAT: 0o0100, O_TRUNC: 0o01000, O_APPEND: 0o02000, O_EXCL: 0o0200 };
O_CREAT: 0o100, O_TRUNC: 0o1000, O_APPEND: 0o2000, O_EXCL: 0o200, O_DIRECTORY: 0o20000 };
fs.open = (path, flags, mode, callback) => {
fsHandler("open", {path:fsp(path),flags,mode}, (resp) => callback(null, resp.fd), callback);
};
Expand Down
Loading
0