diff --git a/src/main/cljs/cljs/core.cljs b/src/main/cljs/cljs/core.cljs index dfd364515e..a86a7da28e 100644 --- a/src/main/cljs/cljs/core.cljs +++ b/src/main/cljs/cljs/core.cljs @@ -10104,12 +10104,12 @@ Maps become Objects. Arbitrary keys are encoded to by key->js." (defn find-ns-obj [ns] (let [munged-ns (munge (str ns)) segs (.split munged-ns ".")] - (if ^boolean js/COMPILED - (js/eval munged-ns) - (case *target* - "nodejs" (find-ns-obj* js/global segs) - "default" (find-ns-obj* js/window segs) - (throw (js/Error. (str "find-ns-obj not supported for target " *target*))))))) + (case *target* + "nodejs" (if ^boolean js/COMPILED + (js/eval munged-ns) + (find-ns-obj* js/global segs)) + "default" (find-ns-obj* js/window segs) + (throw (js/Error. (str "find-ns-obj not supported for target " *target*)))))) (defn ns-interns* [sym] (let [ns-obj (find-ns-obj sym)