Skip to content

Commit cca12a5

Browse files
mfikesdnolen
authored andcommitted
CLJS-1541: Self-host: Cannot require 'cljs.js using cljs.jar
This change updates things to mimic the handling of the defn macro defined previously in the file. A result is that defmacro is available in the standalone shipping cljs.jar and this then makes it possible to (require 'cljs.js).
1 parent c0a4e07 commit cca12a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/clojure/cljs/core.cljc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2924,4 +2924,5 @@
29242924
(cons `defn decl)
29252925
(core/list 'set! `(. ~name ~'-cljs$lang$macro) true))))
29262926

2927-
#?(:cljs (set! (. defmacro -cljs$lang$macro) true))
2927+
#?(:clj (. (var defmacro) (setMacro))
2928+
:cljs (set! (. defmacro -cljs$lang$macro) true))

0 commit comments

Comments
 (0)