File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change 728
728
729
729
cb (function)
730
730
callback, will be invoked with a map. If succesful the map will contain
731
- a :value key with the result of evaluation. If unsuccessful will contain
732
- a :error key with an ex-info instance describing the cause of failure."
731
+ a :value key with the result of evaluation and :ns the current namespace.
732
+ If unsuccessful will contain a :error key with an ex-info instance describing
733
+ the cause of failure."
733
734
([state source cb]
734
735
(eval-str state source nil cb))
735
736
([state source name cb]
860
861
(println (.. error -cause -stack)))
861
862
(println " Result:" res))))
862
863
864
+ (cljs/compile-str st
865
+ " (ns foo.bar (:require-macros [bootstrap-test.macros :refer [foo]]))\n (foo 4 4)"
866
+ 'foo.bar
867
+ {:verbose true
868
+ :source-map true
869
+ :eval node-eval
870
+ :load node-load}
871
+ (fn [{:keys [error] :as res}]
872
+ (if error
873
+ (do
874
+ (println " Error:" error)
875
+ (println (.. error -cause -stack)))
876
+ (println " Result:" res))))
877
+
863
878
(cljs/eval-str st
864
879
" (ns foo.bar)\n (first [1 2 3])"
865
880
'foo.bar
You can’t perform that action at this time.
0 commit comments