-
Notifications
You must be signed in to change notification settings - Fork 191
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
CHANGES: ## Features/Changes * Compiler/Runtime: Make resuming a continuation more efficient in js (ocsigen/js_of_ocaml#1765) * Compiler/Runtime: Effects: add an optional feature of "dynamic switching" between CPS and direct style, resulting in better performance when no effect handler is installed * Compiler: Merged Wasm_of_ocaml (ocsigen/js_of_ocaml#1724) * Lib: fix the type of some DOM properties and methods (ocsigen/js_of_ocaml#1747) * Lib: removed no longer relevant Js.optdef type annotations (ocsigen/js_of_ocaml#1769) * Lib: Add other textMetrics property (ocsigen/js_of_ocaml#1784) * Lib: rename Firebug to Console (ocsigen/js_of_ocaml#1802) * Test: use dune test stanzas (ocsigen/js_of_ocaml#1631) * Test: run wasm tests on windows * Misc: drop support for IE * Misc: move tests to OCaml 5.3 * Misc: import many test from the OCaml codebase * Runtime: support for float16 bigarrays * Runtime: support more Unix functions (ocsigen/js_of_ocaml#1823) * Runtime: various filesystem fixes (ocsigen/js_of_ocaml#1825) ## Bug fixes * Compiler: Fix small bug in global data flow analysis (ocsigen/js_of_ocaml#1768) * Runtime: no longer leak channels * Runtime: Fix Marshal.to_buffer (ocsigen/js_of_ocaml#1798) * Runtime: unmarshalling objects should refresh its id * Runtime: check size upper bound during array creation * Runtime: return sys_error when reading from a closed channels * Runtime: fix parsing of hex-float with very large exponent * Runtime: make sure [n / 0L] is not optimized away by DCE * Runtime: fix Unix.LargeFile.stat/lstat * Runtime: fix stat/lstat times * Runtime: fix reading from stdin in an interactive nodejs
@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.