Skip to content

Commit 63e0b16

Browse files
author
dnolen
committed
fix some obvious bugs wip
1 parent 14e878e commit 63e0b16

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/cljs/cljs/spec/test.cljc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ returns the set of all symbols naming vars in those nses."
4646
[[quote s] opts]
4747
(let [v (ana-api/resolve &env s)]
4848
(when v
49-
(swap! instrumented-vars conj v)
49+
(swap! instrumented-vars conj (:name v))
5050
`(let [checked# (instrument-1* ~s (var ~s) ~opts)]
5151
(when checked# (set! ~s checked#))
5252
'~(:name v)))))
@@ -55,7 +55,7 @@ returns the set of all symbols naming vars in those nses."
5555
[[quote s]]
5656
(let [v (ana-api/resolve &env s)]
5757
(when v
58-
(swap! instrumented-vars disj v)
58+
(swap! instrumented-vars disj (:name v))
5959
`(let [raw# (unstrument-1* ~s (var ~s))]
6060
(when raw# (set! ~s raw#))
6161
'~(:name v)))))
@@ -133,8 +133,8 @@ Returns a collection of syms naming the vars unstrumented."
133133
[~@(->> (collectionize sym-or-syms)
134134
(map
135135
(fn [sym]
136-
(when (symbol? symbol)
137-
`(fn [] (unstrument-1 ~'sym)))))
136+
(when (symbol? sym)
137+
`(fn [] (unstrument-1 '~sym)))))
138138
(remove nil?))])))
139139

140140
;(defmacro run-tests

0 commit comments

Comments
 (0)