Skip to content

Commit 0be62b2

Browse files
thhellermfikes
authored andcommitted
Fix source maps missing local binding names
1 parent 345a9b6 commit 0be62b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/clojure/cljs/compiler.cljc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@
189189
(let [minfo (cond-> {:gcol #?(:clj (.get ^AtomicLong *source-map-data-gen-col*)
190190
:cljs (:gen-col m))
191191
:gline (:gen-line m)}
192-
(#{:var :local :js-var} (:op ast))
192+
(#{:var :local :js-var :binding} (:op ast))
193193
(assoc :name (str (-> ast :info :name))))]
194194
; Dec the line/column numbers for 0-indexing.
195195
; tools.reader uses 1-indexed sources, chrome

0 commit comments

Comments
 (0)