Hi Zubair,

It works in clojurescript.io on iPhone Safari.

But, it would be interesting to separate the macro use from the alert.

(The macro is incorrectly being used directly in the same compilation stage 
where it is being defined—instead it needs to be separately brought in via 
:require-macros).

See: 
https://github.com/clojure/clojurescript/wiki/Differences-from-Clojure#macros

- Mike


> On Dec 28, 2015, at 8:54 AM, Zubair Quraishi <[email protected]> wrote:
> 
> I've noticed that the following bootstrapped Clojurescript works in Chrome 
> and Firefox using eval, but not on Webkit browsers such as iPhone, Safari, 
> iPad:
> 
> (ns some-namespace) 
> 
> (defmacro some-macro [& more]  5  ) 
> (js/alert (pr-str (some-macro 1)))
> 
> It should alert 5 on the screen but in Webkit the browser crashes.  I've 
> tested in Clojurescript 1.7.189 and 1.7.170
> 
> Anyone experienced anything similar?
> 
> -- 
> Note that posts from new members are moderated - please be patient with your 
> first post.
> --- 
> You received this message because you are subscribed to the Google Groups 
> "ClojureScript" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/clojurescript.

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/clojurescript.

Reply via email to