Skip to content

Commit

Permalink
Using empty-env function in rhino repl too
Browse files Browse the repository at this point in the history
  • Loading branch information
raph-amiard authored and David Nolen committed Jun 13, 2012
1 parent 67f55ee commit ca63aab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clj/cljs/repl/rhino.clj
Expand Up @@ -93,7 +93,7 @@
(swap! loaded-libs (partial apply conj) missing))))) (swap! loaded-libs (partial apply conj) missing)))))


(defn rhino-setup [repl-env] (defn rhino-setup [repl-env]
(let [env {:context :statement :locals {} :ns (@comp/namespaces comp/*cljs-ns*)} (let [env (comp/empty-env)
scope (:scope repl-env)] scope (:scope repl-env)]
(repl/load-file repl-env "cljs/core.cljs") (repl/load-file repl-env "cljs/core.cljs")
(swap! loaded-libs conj "cljs.core") (swap! loaded-libs conj "cljs.core")
Expand Down

0 comments on commit ca63aab

Please sign in to comment.