mirror of
https://github.com/janet-lang/janet
synced 2025-01-15 01:45:41 +00:00
Merge branch 'master' of github.com:janet-lang/janet
This commit is contained in:
commit
0b14e913da
@ -1113,7 +1113,8 @@
|
|||||||
(def fmt-2 (if (or (neg? l) (neg? c)) ":" (string/format " on line %d, column %d:" l c)))
|
(def fmt-2 (if (or (neg? l) (neg? c)) ":" (string/format " on line %d, column %d:" l c)))
|
||||||
(def fmt (string fmt-1 fmt-2 " %j is "))
|
(def fmt (string fmt-1 fmt-2 " %j is "))
|
||||||
(def s (gensym))
|
(def s (gensym))
|
||||||
~(let [,s ,x]
|
~(upscope
|
||||||
|
(def ,s ,x)
|
||||||
(,eprinf ,fmt ',x)
|
(,eprinf ,fmt ',x)
|
||||||
(,eprintf (,dyn :pretty-format "%q") ,s)
|
(,eprintf (,dyn :pretty-format "%q") ,s)
|
||||||
,s))
|
,s))
|
||||||
|
@ -320,4 +320,8 @@
|
|||||||
(array/push a x))
|
(array/push a x))
|
||||||
(assert (deep= (range 4) a) "eachk 1")
|
(assert (deep= (range 4) a) "eachk 1")
|
||||||
|
|
||||||
|
|
||||||
|
(tracev (def my-unique-var-name true))
|
||||||
|
(assert my-unique-var-name "tracev upscopes")
|
||||||
|
|
||||||
(end-suite)
|
(end-suite)
|
||||||
|
Loading…
Reference in New Issue
Block a user