Calling (done) within binding in an async test corrupts bound vars

Description

In an async test, calling (done) within a (binding) corrupts bound vars.

repro/core.cljs

The first test passes as expected, and because (done) is outside the binding, foo is reverted to nil. The second test passes, but leaves foo bound. The third test fails.

Environment

OS X 10.11.5

⟩ java -version
java version "1.8.0_72"
Java(TM) SE Runtime Environment (build 1.8.0_72-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.72-b15, mixed mode)

Activity

Show:
import
July 10, 2016, 10:44 PM

Comment made by: eyelidlessness

clojure.string is not necessary for the repro, but I am unable to edit to remove it.

Antonin Hildebrand
July 10, 2016, 11:28 PM

might be related to

David Nolen
July 11, 2016, 10:14 PM

This is expected behavior

Declined

Assignee

Unassigned

Reporter

import

Labels

Approval

None

Patch

None

Affects versions

Priority

Major