Skip to content

Commit ade4ab7

Browse files
committed
extend Compilable to Symbol
1 parent 6b9c8c1 commit ade4ab7

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/main/clojure/cljs/closure.clj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,12 @@
661661
(-compile [this opts] (-compile (io/file this) opts))
662662
(-find-sources [this opts] (-find-sources (io/file this) opts))
663663

664+
clojure.lang.Symbol
665+
(-compile [this opts]
666+
(-compile (util/ns->source this) opts))
667+
(-find-sources [this opts]
668+
(-find-sources (util/ns->source this) opts))
669+
664670
clojure.lang.PersistentVector
665671
(-compile [this opts] (compile-form-seq this))
666672
(-find-sources [this opts]
@@ -686,6 +692,8 @@
686692
(-compile '[(ns test.app (:require [goog.array :as array]))
687693
(defn plus-one [x] (inc x))]
688694
{})
695+
696+
(-find-sources 'cljs.core {})
689697
)
690698

691699
(defn js-dependencies

0 commit comments

Comments
 (0)