Skip to content

Commit 028fd47

Browse files
mfikesswannodette
authored andcommitted
CLJS-2072: Eliminate reflection in cljs.js-deps/build-index
1 parent f506e88 commit 028fd47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/clojure/cljs/js_deps.cljc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ case."
148148
;; avoid overwriting a CLJS dep with a CLJC dep of
149149
;; the same namespace - António Monteiro
150150
(let [file (when-let [f (or (:source-file dep) (:file dep))]
151-
(.toString f))
151+
(str f))
152152
ext (when file
153-
(.substring file (inc (.lastIndexOf file "."))))]
153+
(subs file (inc (string/last-index-of file "."))))]
154154
(update-in index' [provide]
155155
(fn [d]
156156
(if (and (= ext "cljc") (some? d))

0 commit comments

Comments
 (0)