From 6266675eeb6904794fb05ea371c29391dde913c2 Mon Sep 17 00:00:00 2001 From: brandonspark Date: Tue, 24 Oct 2023 12:15:33 -0700 Subject: [PATCH 1/3] Runtime: fix: add back missing return for caml_unix_lstat_64 --- runtime/unix.js | 1 + 1 file changed, 1 insertion(+) diff --git a/runtime/unix.js b/runtime/unix.js index 95d349deaa..d8ed9fc317 100644 --- a/runtime/unix.js +++ b/runtime/unix.js @@ -154,6 +154,7 @@ function caml_unix_lstat(name) { function caml_unix_lstat_64(name) { var r = caml_unix_lstat(name); r[9] = caml_int64_of_int32(r[9]); + return r; } //Provides: caml_unix_mkdir From 1c4652f76e6be24df7ad3d02feb33d425eb09cea Mon Sep 17 00:00:00 2001 From: brandonspark Date: Tue, 24 Oct 2023 15:24:07 -0700 Subject: [PATCH 2/3] Runtime: fix caml_unix_stat_64 too --- runtime/unix.js | 1 + 1 file changed, 1 insertion(+) diff --git a/runtime/unix.js b/runtime/unix.js index d8ed9fc317..be63a17dd5 100644 --- a/runtime/unix.js +++ b/runtime/unix.js @@ -135,6 +135,7 @@ function caml_unix_stat(name) { function caml_unix_stat_64(name) { var r = caml_unix_stat(name); r[9] = caml_int64_of_int32(r[9]); + return r; } //Provides: caml_unix_lstat From 0f314eabf110a5b6c3c94b50fc43c8c346c32d93 Mon Sep 17 00:00:00 2001 From: brandonspark Date: Wed, 25 Oct 2023 08:29:02 -0700 Subject: [PATCH 3/3] Changes --- CHANGES.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES.md b/CHANGES.md index aa8af27ede..2ba018e26e 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -12,6 +12,7 @@ * Runtime: fix Dom_html.onIE (#1493) * Runtime: add conversion functions + strict equality for compatibility with Wasm_of_ocaml (#1492) * Runtime: Dynlink should be able to find symbols in jsoo_runtime #1517 +* Runtime: fix Unix.lstat, Unix.LargeFile.lstat (#1519) * Compiler: fix global flow analysis (#1494) * Compiler: fix js parser/printer wrt async functions (#1515)