Skip to content

Commit 4218016

Browse files
committed
switch the cljs runner to node
1 parent 7879374 commit 4218016

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

project.clj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,13 @@
5555

5656
:test {:source-paths ["src" "test"]
5757
:compiler {:output-to "target/tests.js"
58-
:optimizations :whitespace
58+
:optimizations :none
5959
:main clj-momo.runner
60-
:pretty-print true}}}}
60+
:pretty-print true
61+
:target :nodejs}}}}
62+
63+
:doo {:build "test"
64+
:alias {:default [:node]}}
6165

6266
:test-selectors {:integration :integration
6367
:default (complement :integration)

src/clj_momo/lib/clj_time/core.cljc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
(:require [clj-momo.lib.clj-time.coerce :as time-coerce]
55
#?(:clj [clj-momo.lib.clj-time.macros :refer [immigrate]])
66
#?(:clj [clj-time.core :as time-delegate]
7-
:cljs [cljs-time.core :as time-delegate]))
7+
:cljs [cljs-time.core :as time-delegate])
8+
#?@(:cljs [[goog.array :as garray]]))
89
#?(:clj
910
(:import [java.util Calendar Date GregorianCalendar TimeZone]
1011
[org.joda.time ReadablePartial ReadableInstant ReadablePeriod
@@ -603,7 +604,7 @@
603604
cljs.core/IComparable
604605
(^number -compare [x y]
605606
(if (instance? goog.date.UtcDateTime y)
606-
(goog.array/defaultCompare
607+
(garray/defaultCompare
607608
(.getTime x)
608609
(.getTime y))
609610
(throw

0 commit comments

Comments
 (0)