Commit a93859a
CLJS-3005: empty on Cons shouldn't keep metadata
Also applying cons to nil, eg: (cons 'x nil) now produces a List
as per Clojure rather than a Cons. This is important when trying to
handle metadata correctly as a List is a collection and thus preserves
metadata when emptied or conj'ed.1 parent b38ad7e commit a93859a
2 files changed
Lines changed: 10 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3274 | 3274 | | |
3275 | 3275 | | |
3276 | 3276 | | |
3277 | | - | |
| 3277 | + | |
3278 | 3278 | | |
3279 | 3279 | | |
3280 | 3280 | | |
| |||
3295 | 3295 | | |
3296 | 3296 | | |
3297 | 3297 | | |
3298 | | - | |
3299 | | - | |
3300 | | - | |
3301 | | - | |
| 3298 | + | |
| 3299 | + | |
| 3300 | + | |
| 3301 | + | |
3302 | 3302 | | |
3303 | 3303 | | |
3304 | 3304 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
0 commit comments