Skip to content

Commit

Permalink
goog.global lookup must be a string
Browse files Browse the repository at this point in the history
  • Loading branch information
dnolen committed Jun 14, 2018
1 parent 23d97da commit 3b0ce12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/cljs/cljs/js.cljs
Expand Up @@ -659,7 +659,7 @@
(with-out-str
(comp/emitln (munge ns-name) "."
(ana/munge-global-export dep)
" = goog.global." (get global-exports (symbol dep)) ";")))))
" = goog.global[\"" (get global-exports (symbol dep)) "\"];")))))
(when (and (seq deps) emit-nil-result?)
(.append sb "null;"))))

Expand Down
2 changes: 1 addition & 1 deletion src/main/clojure/cljs/compiler.cljc
Expand Up @@ -1179,7 +1179,7 @@
(let [{:keys [global-exports]} (get js-dependency-index (name lib))]
(emitln (munge ns-name) "."
(ana/munge-global-export lib)
" = goog.global." (get global-exports (symbol lib)) ";")))
" = goog.global[\"" (get global-exports (symbol lib)) "\"];")))
(when (-> libs meta :reload-all)
(emitln "if(!COMPILED) " loaded-libs " = cljs.core.into(" loaded-libs-temp ", " loaded-libs ");"))))

Expand Down

0 comments on commit 3b0ce12

Please sign in to comment.