Skip to content

Commit 4218670

Browse files
committed
fix bad res call in cljs.spec/merge macro
1 parent 7fe5446 commit 4218670

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/cljs/cljs/spec.cljc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@
449449
predicates. Unlike 'and', merge can generate maps satisfying the
450450
union of the predicates."
451451
[& pred-forms]
452-
`(cljs.spec/merge-spec-impl '~(mapv res pred-forms) ~(vec pred-forms) nil))
452+
`(cljs.spec/merge-spec-impl '~(mapv #(res &env %) pred-forms) ~(vec pred-forms) nil))
453453

454454
(defmacro exercise-fn
455455
"exercises the fn named by sym (a symbol) by applying it to

0 commit comments

Comments
 (0)