Hi, I noticed that `with-meta` is not working on function objects in CLJS. Compilation fails with the following error:
Error: No protocol method IWithMeta.-with-meta defined for type function: function (maps, x) { return x; } I tried it out on the REPL and found the following: ---------- BEGIN: repl-rhino ---------- ClojureScript:cljs.user> (with-meta #(do :foo) {:foo :bar}) "Error evaluating:" (with-meta (fn* [] (do :foo)) {:foo :bar}) :as "cljs.core.with_meta.call(null,(function (){\nreturn \"\\uFDD0'foo\";\n}),cljs.core.ObjMap.fromObject([\"\\uFDD0'foo\"],{\"\\uFDD0'foo\":\"\\uFDD0'bar\"}));\n" org.mozilla.javascript.JavaScriptException: Error: No protocol method IWithMeta.-with-meta defined for type function: function () { return "\ufdd0'foo"; } (cljs/core.cljs#222) at cljs/core.cljs:222 (anonymous) at cljs/core.cljs:214 (_with_meta) at cljs/core.cljs:806 (with_meta) at <cljs repl>:2 (anonymous) at <cljs repl>:2 nil ---------- END: repl-rhino ---------- Is this supposed to be a bug? I can file an issue on JIRA if so. Shantanu -- 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