Skip to content

Commit f9ffbee

Browse files
author
dnolen
committed
instrument-1 & unstrument-1 take quoted symbols
1 parent 7a539cc commit f9ffbee

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ returns the set of all symbols naming vars in those nses."
4141
~@body))
4242

4343
(defmacro instrument-1
44-
[s opts]
44+
[[quote s] opts]
4545
(let [v (ana-api/resolve &env s)]
4646
(when v
4747
`(let [checked# (instrument-1* ~s (var ~s) ~opts)]
4848
(when checked# (set! ~s checked#))
4949
'~(:name v)))))
5050

5151
(defmacro unstrument-1
52-
[s]
52+
[[quote s]]
5353
(let [v (ana-api/resolve &env s)]
5454
(when v
5555
`(let [raw# (unstrument-1* ~s (var ~s))]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ Returns a map as quick-check, with :explain-data added if
293293

294294
(instrumentable-syms)
295295

296-
(m/instrument-1 ranged-rand {})
296+
(m/instrument-1 `ranged-rand {})
297297

298298
(m/instrument `ranged-rand)
299299
(m/instrument `[ranged-rand])

0 commit comments

Comments
 (0)