In a ClojureScript project targetting nodejs, what exactly is going on behind the scenes with the following common statement?
(node/enable-util-print!)
In a ClojureScript project targetting nodejs, what exactly is going on behind the scenes with the following common statement?
(node/enable-util-print!)
If you check the source out you'll see it's defining a few dynamic variables, which are then used for printing to console, e.g. via string-print
and other functions.
Without it, the base definition of *print-fn*
throws an error as you are required to set something appropriate for the environment you're running in.