Skip to content

Commit 16d9be2

Browse files
JarrodCTaylorfogus
authored andcommitted
Updated metadata processing to support param-tags in 1.12
1 parent 0d3a7cd commit 16d9be2

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

src/main/cljs/cljs/tools/reader/impl/errors.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
rdr
188188
"Metadata cannot be "
189189
(i/inspect x)
190-
". Metadata must be a Symbol, Keyword, String or Map."))
190+
". Metadata must be a Symbol, Keyword, String, Map or Vector."))
191191

192192
(defn throw-bad-metadata-target [rdr target]
193193
(reader-error

src/main/cljs/cljs/tools/reader/impl/utils.cljs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
(keyword? f) {f true}
6969
(symbol? f) {:tag f}
7070
(string? f) {:tag f}
71+
(vector? f) {:param-tags f}
7172
:else f))
7273

7374
(def last-id (atom 0))

src/main/clojure/clojure/tools/reader/impl/errors.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@
171171
rdr
172172
"Metadata cannot be "
173173
(i/inspect x)
174-
". Metadata must be a Symbol, Keyword, String or Map."))
174+
". Metadata must be a Symbol, Keyword, String, Map or Vector."))
175175

176176
(defn throw-bad-metadata-target [rdr target]
177177
(reader-error

src/main/clojure/clojure/tools/reader/impl/utils.clj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@
9999
(keyword? f) {f true}
100100
(symbol? f) {:tag f}
101101
(string? f) {:tag f}
102+
(vector? f) {:param-tags f}
102103
:else f))
103104

104105
(defn make-var

0 commit comments

Comments
 (0)