On Sat, Oct 6, 2012 at 4:32 PM, Michal Gornisiewicz <mic...@mrg.id.au>wrote:

> Hello,
>
>
> I found an issue with the compiler and/or repl code.
>
> Here, the compiler emits code which throws a string if there's a call with
> incorrect arity:
>
> https://github.com/clojure/clojurescript/blob/master/src/clj/cljs/compiler.clj#L468
>
> Shouldn't this be throwing Error (or a subclass instead)?
>
>
> One place this is a problem is in the repl, here:
>
> https://github.com/clojure/clojurescript/blob/master/src/cljs/clojure/browser/repl.cljs#L31
>
> which catches js/Error and so doesn't catch the above exception, which is
> a string.
>
> PS - On a related note, how does one catch strings in ClojureScript?
>
>
>
> Michal
>

Thanks for the report. I opened a ticket for this:
http://dev.clojure.org/jira/browse/CLJS-389

David

-- 
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