Skip to content

Commit 2c633d5

Browse files
committed
in system-time check that js/process.hrtime is actually a thing
1 parent 278d2a5 commit 2c633d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/cljs/cljs/core.cljs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,8 @@
341341
(not (nil? (. js/performance -now))))
342342
(.now js/performance)
343343

344-
(exists? js/process)
344+
(and (exists? js/process)
345+
(not (nil? (. js/process -hrtime))))
345346
(let [t (.hrtime js/process)]
346347
(/ (+ (* (aget t 0) 1e9) (aget t 1)) 1e6))
347348

0 commit comments

Comments
 (0)