Skip to content

Commit f0b162c

Browse files
committed
Rename :callstack to impl
1 parent caf23d2 commit f0b162c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/sci/impl/utils.cljc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
(kw-identical? :fn op)
6767
;; special thing like require
6868
(identical? needs-ctx op)))
69-
(swap! (:env ctx) update-in [:callstack (:id ctx)]
69+
(swap! (:env ctx) update-in [:sci.impl/callstack (:id ctx)]
7070
(fn [vt]
7171
(if vt
7272
(do (vswap! vt conj node)
@@ -93,7 +93,7 @@
9393
:line line
9494
:column column
9595
:message m
96-
:callstack (delay (when-let [v (get-in @(:env ctx) [:callstack (:id ctx)])]
96+
:sci.impl/callstack (delay (when-let [v (get-in @(:env ctx) [:sci.impl/callstack (:id ctx)])]
9797
@v))
9898
:file file
9999
:locals (:bindings ctx)}

test/sci/error_test.cljc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
(map #(-> %
1717
(select-keys [:ns :name :line :column])
1818
(update :ns sci-ns-name))
19-
(cs/stacktrace (:callstack (ex-data e))))))]
19+
(cs/stacktrace (:sci.impl/callstack (ex-data e))))))]
2020
(is (= '({:ns clojure.core, :name subs}
2121
{:ns user, :name bar, :line 2, :column 14}
2222
{:ns user, :name bar, :line 2, :column 1}

0 commit comments

Comments
 (0)