Skip to content

Commit 3123aa3

Browse files
committed
CLJS-2827: Avoid var special in core macros for private var access
1 parent 99efac4 commit 3123aa3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/clojure/cljs/core.cljc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1862,7 +1862,7 @@
18621862

18631863
'IPrintWithWriter
18641864
`(~'-pr-writer [this# writer# opts#]
1865-
(let [pr-pair# (fn [keyval#] (pr-sequential-writer writer# @#'pr-writer "" " " "" opts# keyval#))]
1865+
(let [pr-pair# (fn [keyval#] (pr-sequential-writer writer# (~'js* "cljs.core.pr_writer") "" " " "" opts# keyval#))]
18661866
(pr-sequential-writer
18671867
writer# pr-pair# ~pr-open ", " "}" opts#
18681868
(concat [~@(map #(core/list `vector (keyword %) %) base-fields)]
@@ -2687,7 +2687,7 @@
26872687
prefer-table# (atom {})
26882688
method-cache# (atom {})
26892689
cached-hierarchy# (atom {})
2690-
hierarchy# (cljs.core/get ~options :hierarchy (#'cljs.core/get-global-hierarchy))]
2690+
hierarchy# (cljs.core/get ~options :hierarchy ((~'js* "cljs.core.get_global_hierarchy")))]
26912691
(cljs.core/MultiFn. (cljs.core/symbol ~mm-ns ~(name mm-name)) ~dispatch-fn ~default hierarchy#
26922692
method-table# prefer-table# method-cache# cached-hierarchy#))))))
26932693

0 commit comments

Comments
 (0)