Skip to content

Commit f7e4c3c

Browse files
author
dnolen
committed
CLJS-1425: self-host: cljs.js/eval cb argument inconsistent with docstring
1 parent 734e503 commit f7e4c3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/cljs/cljs/js.cljs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,9 +552,9 @@
552552
(if (:error res)
553553
(cb res)
554554
(let [src (str "goog.provide(\"" (munge (:name ast)) "\")")]
555-
(cb (*eval-fn* {:source src}))))))
555+
(cb {:value (*eval-fn* {:source src})})))))
556556
(let [src (with-out-str (comp/emit ast))]
557-
(cb (*eval-fn* {:source src}))))))))))
557+
(cb {:value (*eval-fn* {:source src})})))))))))
558558

559559
(defn eval
560560
"Evaluate a single ClojureScript form. The parameters:

0 commit comments

Comments
 (0)