From e7abb2b5384b0b64d871fb347be7c34a15473eb2 Mon Sep 17 00:00:00 2001 From: nathanmarz Date: Tue, 26 Jun 2018 08:39:28 -0400 Subject: [PATCH] fix handling of subvector paths in cljs --- CHANGES.md | 1 + src/clj/com/rpl/specter/impl.cljc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index b9d9053..8ecf125 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,6 +2,7 @@ * Eliminate reflection warning * Bug fix: Fix inline compiler symbol handling so class references can be used as constants within paths +* Bug fix: Fix handling of subvector paths in cljs ## 1.1.1 - 2018-04-23 diff --git a/src/clj/com/rpl/specter/impl.cljc b/src/clj/com/rpl/specter/impl.cljc index fd4f602..15ec8db 100644 --- a/src/clj/com/rpl/specter/impl.cljc +++ b/src/clj/com/rpl/specter/impl.cljc @@ -177,7 +177,7 @@ (coerce-path (vec this)))) #?(:cljs cljs.core/Subvec) #?(:cljs (coerce-path [this] - (coerce-path (vec this)))) + (coerce-path (into [] this)))) #?(:clj Object :cljs default) (coerce-path [this]