Welcome! Please see the About page for a little more info on how this works.

0 votes
in ClojureScript by

`
(do (println "for loop test: 2 deep")
(for [a [[1]]]

(for [b a]
  b)))

;; this compiles and runs fine in the browser

(do (println "for loop test: 3 deep")
(doall
(for [a [[[1]]]]

 (for [b a]
   (for [c b]
     c)))))

;; this fails while the page loads, with the error: Uncaught RangeError: Maximum call stack size exceeded
`

The above works fine in a desktop browser. For some reason the error condition only happens on the Android Chrome browser.

Let me know if any further details are required.

2 Answers

0 votes
by

Comment made by: mfikes

Hey John, we've committed a lot of optimizations over the past year or so. I wonder if this is still reproducible.

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJS-797 (reported by alex+import)
...