Skip to content

Commit 18f580c

Browse files
mfikesswannodette
authored andcommitted
CLJS-2116: Need to handle un-namespaced symbol when evaluating `foo.core
1 parent f3886c9 commit 18f580c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/main/cljs/cljs/js.cljs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,10 @@
4242

4343
(defn- drop-macros-suffix
4444
[ns-name]
45-
(if (string/ends-with? ns-name "$macros")
46-
(subs ns-name 0 (- (count ns-name) 7))
47-
ns-name))
45+
(when ns-name
46+
(if (string/ends-with? ns-name "$macros")
47+
(subs ns-name 0 (- (count ns-name) 7))
48+
ns-name)))
4849

4950
(defn- elide-macros-suffix
5051
[sym]

0 commit comments

Comments
 (0)