File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 541
541
the-ns (or (:ns opts) 'cljs.user)
542
542
bound-vars (cond-> (merge bound-vars {:*cljs-ns* the-ns})
543
543
(:source-map opts) (assoc :*sm-data* (sm-data )))]
544
- ((fn compile-loop []
544
+ ((fn compile-loop [ns ]
545
545
(binding [env/*compiler* (:*compiler* bound-vars)
546
546
*eval-fn* (:*eval-fn* bound-vars)
547
- ana/*cljs-ns* ( :*cljs-ns* bound-vars)
548
- *ns* (create-ns ( :*cljs-ns* bound-vars) )
547
+ ana/*cljs-ns* ns
548
+ *ns* (create-ns ns )
549
549
r/*data-readers* (:*data-readers* bound-vars)
550
550
comp/*source-map-data* (:*sm-data* bound-vars)]
551
551
(let [res (try
573
573
(fn [res]
574
574
(if (:error res)
575
575
(cb res)
576
- (compile-loop ))))
577
- (recur )))
576
+ (compile-loop ( :name ast) ))))
577
+ (recur ns )))
578
578
(do
579
579
(when (:source-map opts)
580
580
(append-source-map env/*compiler*
581
581
name source sb @comp/*source-map-data* opts))
582
- (cb {:value (.toString sb)})))))))))))
582
+ (cb {:value (.toString sb)})))))))) the-ns )))
583
583
584
584
(defn compile-str
585
585
" Compile ClojureScript source into JavaScript. The parameters:
You can’t perform that action at this time.
0 commit comments