Skip to content

Commit 3b0ce12

Browse files
author
dnolen
committed
goog.global lookup must be a string
1 parent 23d97da commit 3b0ce12

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: src/main/cljs/cljs/js.cljs

+1-1
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@
659659
(with-out-str
660660
(comp/emitln (munge ns-name) "."
661661
(ana/munge-global-export dep)
662-
" = goog.global." (get global-exports (symbol dep)) ";")))))
662+
" = goog.global[\"" (get global-exports (symbol dep)) "\"];")))))
663663
(when (and (seq deps) emit-nil-result?)
664664
(.append sb "null;"))))
665665

Diff for: src/main/clojure/cljs/compiler.cljc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,7 @@
11791179
(let [{:keys [global-exports]} (get js-dependency-index (name lib))]
11801180
(emitln (munge ns-name) "."
11811181
(ana/munge-global-export lib)
1182-
" = goog.global." (get global-exports (symbol lib)) ";")))
1182+
" = goog.global[\"" (get global-exports (symbol lib)) "\"];")))
11831183
(when (-> libs meta :reload-all)
11841184
(emitln "if(!COMPILED) " loaded-libs " = cljs.core.into(" loaded-libs-temp ", " loaded-libs ");"))))
11851185

0 commit comments

Comments
 (0)