mirror of
https://github.com/janet-lang/janet
synced 2025-10-09 04:52:28 +00:00
Version 2 of new source mapping.
This commit is contained in:
18
examples/error.dst
Normal file
18
examples/error.dst
Normal file
@@ -0,0 +1,18 @@
|
||||
# An example file that errors out. Run with ./dst examples/error.dst
|
||||
# to see stack trace for runtime errors.
|
||||
|
||||
(defn bark [x]
|
||||
(print "Woof!")
|
||||
(print x)
|
||||
(error x)
|
||||
(print "Woof!"))
|
||||
|
||||
(defn bork [x]
|
||||
(bark (* 2 x))
|
||||
(bark (* 3 x)))
|
||||
|
||||
(defn pupper []
|
||||
(bork 3)
|
||||
1)
|
||||
|
||||
(pupper)
|
Reference in New Issue
Block a user