Thank you. It works now.

However, I think this is an issue of compiling clojurescript to
nodejs. *Buffer* is a nodejs specific function like *require* (a
nodejs function). So maybe we'd better use it like the way we use
require: (cljs.nodejs/require).
When compiled to nodejs, require is added to the namespace
cljs.nodejs:
cljs.nodejs = {};
cljs.nodejs.require = require;
cljs.nodejs.process = process;

But Buffer is ignored even when we use node/Buffer explicitly.

On Dec 13, 9:45 pm, Stuart Sierra <the.stuart.sie...@gmail.com> wrote:
> I don't know if this works for this case, but the special namespace "js"
> allows access to raw JavaScript objects.  Try js/Buffer
>
> -S

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to