Permalink
Browse files

Fix broken NodeJS samples

Broken by CLJS-722 (b299a6b)
  • Loading branch information...
1 parent 203d853 commit f6d743b835df5d1b2a4991193a4d7740b1d67aff @jeffdik jeffdik committed with swannodette Feb 17, 2014
Showing with 4 additions and 1 deletion.
  1. +3 −1 samples/nodehello.cljs
  2. +1 −0 samples/nodels.cljs
@@ -1,8 +1,10 @@
-(ns nodehello)
+(ns nodehello
+ (:require [cljs.nodejs :as nodejs]))
(defn -main [& args]
(println (apply str (map [\space "world" "hello"] [2 0 1]))))
+(nodejs/enable-util-print!)
(set! *main-cli-fn* -main)
(comment
View
@@ -14,4 +14,5 @@
(defn -main [& paths]
(dorun (map println (mapcat file-seq paths))))
+(nodejs/enable-util-print!)
(set! *main-cli-fn* -main)

0 comments on commit f6d743b

Please sign in to comment.