We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c98020 commit 6f4b313Copy full SHA for 6f4b313
src/main/cljs/cljs/spec.cljc
@@ -346,8 +346,8 @@
346
(possibly converted) value or :cljs.spec/invalid, and returns a
347
spec that uses it as a predicate/conformer. Optionally takes a
348
second fn that does unform of result of first"
349
- ([f] `(spec-impl '~f ~f nil true))
350
- ([f unf] `(spec-impl '~f ~f nil true ~unf)))
+ ([f] `(spec-impl '(conformer ~(res &env f)) ~f nil true))
+ ([f unf] `(spec-impl '(conformer ~(res &env f) ~(res &env unf)) ~f nil true ~unf)))
351
352
(defmacro fspec
353
"takes :args :ret and (optional) :fn kwargs whose values are preds
0 commit comments