-
Notifications
You must be signed in to change notification settings - Fork 189
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
Various runtime fixes #1825
Various runtime fixes #1825
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 5 out of 9 changed files in this pull request and generated 1 comment.
Files not reviewed (4)
- compiler/tests-io/dune: Language not supported
- compiler/tests-io/non_ascii_filenames.expected: Language not supported
- compiler/tests-io/non_ascii_filenames.ml: Language not supported
- runtime/js/unix.js: Evaluated as low risk
Comments suppressed due to low confidence (4)
runtime/js/fs.js:216
- [nitpick] Ensure the new error message 'ENOTDIR: not a directory, chdir' is clear and helpful.
caml_raise_sys_error("ENOTDIR: not a directory, chdir '" + caml_jsstring_of_string(dir) + "'");
runtime/js/fs.js:209
- Ensure the new behavior introduced in caml_sys_chdir is covered by tests.
if (root.device.is_dir(root.rest)) {
runtime/js/io.js:93
- The removal of the compatibility check for Open_rdonly and Open_wronly flags may lead to unclear error states if these checks are not handled elsewhere in the codebase.
if (f.rdonly && f.wronly)
runtime/js/io.js:96
- The removal of the compatibility check for Open_text and Open_binary flags may lead to unclear error states if these checks are not handled elsewhere in the codebase.
if (f.text && f.binary)
I don't mind minor releases if something break. Can you update CHANGES.md ? |
In particular: - I'm not sure inconsistent flags when opening a file should result in a failure - I suspect fs.writeSync does not always write everything - Unix.getuid should not fail - The target of Unix.symlink is just some arbitrary text
@hhugo I'm a bit worried of making large changes right before a release. So, if you are unsure of some of the changes, I can just omit them.