I think you are talking about the set-print-fn fn here. I added this
because after advanced mode compilation, setting the
cljs.core._STAR_print_fn_STAR_ symbol will fail, because it has been
renamed to a shorter name. The set-print-fn has ^:export in it's meta
data and won't be renamed.

    p.evaluate(function () {
      // can't just assign console.log directly?
      cljs.core._STAR_print_fn_STAR_ = function (x) {
    				           x = x.replace(/\n/g, "");
    				           console.log(x);
    				       };
    });

Since cljs.core._STAR_print_fn_STAR_ is	not annotated with ^:export
meta data, there must be some other function that can be called to
assign the print function. Is this what you meant?