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

0 votes
in core.async by

I got an StackOverflowError during compilation of CLJS tests using clojurescript.test from Chas Emerick.

I narrowed the problem to following code:

`
(ns async.overflow.cljs
(:require-macros [cljs.core.async.macros :refer [go]]

               [cemerick.cljs.test :refer [deftest is]])

(:require [cemerick.cljs.test]))

(deftest foobar
(go

(is (= 1 1))
(is (= 1 1))
(is (= 1 1))
(is (= 1 1))
(is (= 1 1))
(is (= 1 1))
(is (= 1 1))
(is (= 1 1))))

`

If you do not get the exception, try to increase number of repetitions of 'is' call.

I was not able to replicate the issue in CLJ. cemerick.cljs.test/is macro is probably far more complex than original CLJ version in clojure.test/is.

1 Answer

0 votes
by
Reference: https://clojure.atlassian.net/browse/ASYNC-77 (reported by skardan)
...