Skip to content

Commit b3671f0

Browse files
vouillonhhugo
authored andcommitted
Wasm runtime: fix Unix.times
1 parent d2669c6 commit b3671f0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
## Bug fixes
77
* Compiler: fix purity of comparison functions (again) (#2092)
8+
* Runtime/wasm: fix Unix.times (#2096)
89

910
# 6.2.0 (2025-07-30) - Lille
1011

runtime/wasm/runtime.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@
392392
return caml_alloc_times(t.user / 1e6, t.system / 1e6);
393393
} else {
394394
var t = performance.now() / 1000;
395-
return caml_alloc_times(t, t);
395+
return caml_alloc_times(t, 0);
396396
}
397397
},
398398
gmtime: (t) => {

0 commit comments

Comments
 (0)