Re: compiler: throw Error instead of a string?

2012-10-09 Thread Michal Gornisiewicz
Thanks try* would do the trick. Though note that catch js/String won't catch strings, as: > "foo" instanceof String false Michal On Monday, 8 October 2012 01:18:54 UTC+2, Herwig Hochleitner wrote: > > Javascript native try-catch is available as the compiler builtin try* > form. cljs.core/try

compiler: throw Error instead of a string?

2012-10-07 Thread Michal Gornisiewicz
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)?