Skip to content

Commit f6d743b

Browse files
jeffdikswannodette
authored andcommitted
Fix broken NodeJS samples
Broken by CLJS-722 (b299a6b)
1 parent 203d853 commit f6d743b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

samples/nodehello.cljs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
(ns nodehello)
1+
(ns nodehello
2+
(:require [cljs.nodejs :as nodejs]))
23

34
(defn -main [& args]
45
(println (apply str (map [\space "world" "hello"] [2 0 1]))))
56

7+
(nodejs/enable-util-print!)
68
(set! *main-cli-fn* -main)
79

810
(comment

samples/nodels.cljs

+1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@
1414
(defn -main [& paths]
1515
(dorun (map println (mapcat file-seq paths))))
1616

17+
(nodejs/enable-util-print!)
1718
(set! *main-cli-fn* -main)

0 commit comments

Comments
 (0)