File tree Expand file tree Collapse file tree 1 file changed +16
-14
lines changed Expand file tree Collapse file tree 1 file changed +16
-14
lines changed Original file line number Diff line number Diff line change 594
594
([repl-env env form]
595
595
(self repl-env env form nil ))
596
596
([repl-env env [_ file :as form] opts]
597
- (load-file repl-env file opts)))]
598
- {'in-ns
599
- (fn self
600
- ([repl-env env form]
601
- (self repl-env env form nil ))
602
- ([repl-env env [_ [quote ns-name] :as form] _]
603
- ; ; guard against craziness like '5 which wreaks havoc
604
- (when-not (and (= quote 'quote) (symbol? ns-name))
605
- (throw (IllegalArgumentException. " Argument to in-ns must be a symbol." )))
606
- (when-not (ana/get-namespace ns-name)
607
- (swap! env/*compiler* assoc-in [::ana/namespaces ns-name] {:name ns-name})
608
- (-evaluate repl-env " <cljs repl>" 1
609
- (str " goog.provide('" (comp/munge ns-name) " ');" )))
610
- (set! ana/*cljs-ns* ns-name)))
597
+ (load-file repl-env file opts)))
598
+ in-ns-fn
599
+ (fn self
600
+ ([repl-env env form]
601
+ (self repl-env env form nil ))
602
+ ([repl-env env [_ [quote ns-name] :as form] _]
603
+ ; ; guard against craziness like '5 which wreaks havoc
604
+ (when-not (and (= quote 'quote) (symbol? ns-name))
605
+ (throw (IllegalArgumentException. " Argument to in-ns must be a symbol." )))
606
+ (when-not (ana/get-namespace ns-name)
607
+ (swap! env/*compiler* assoc-in [::ana/namespaces ns-name] {:name ns-name})
608
+ (-evaluate repl-env " <cljs repl>" 1
609
+ (str " goog.provide('" (comp/munge ns-name) " ');" )))
610
+ (set! ana/*cljs-ns* ns-name)))]
611
+ {'in-ns in-ns-fn
612
+ 'clojure.core/in-ns in-ns-fn
611
613
'require
612
614
(fn self
613
615
([repl-env env form]
You can’t perform that action at this time.
0 commit comments