Skip to content

Commit 1b73904

Browse files
oakesswannodette
authored andcommitted
CLJS-1440: Allow eval to work inside a web worker
Use goog/global instead of js/window so the correct global is always used.
1 parent a1ef3a1 commit 1b73904

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/cljs/cljs/core.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10125,7 +10125,7 @@ Maps become Objects. Arbitrary keys are encoded to by key->js."
1012510125
"nodejs" (if ^boolean js/COMPILED
1012610126
(js/eval munged-ns)
1012710127
(find-ns-obj* js/global segs))
10128-
"default" (find-ns-obj* js/window segs)
10128+
"default" (find-ns-obj* goog/global segs)
1012910129
(throw (js/Error. (str "find-ns-obj not supported for target " *target*))))))
1013010130

1013110131
(defn ns-interns* [sym]

0 commit comments

Comments
 (0)