1
0
mirror of https://github.com/janet-lang/janet synced 2026-04-19 13:21:26 +00:00
Files
janet/examples/error.janet
2026-03-15 13:14:10 -05:00

20 lines
303 B
Janet

# An example file that errors out. Run with ./janet examples/error.janet
# to see stack trace for runtime errors.
(defn bork [x]
(defn bark [y]
(print "Woof!")
(print y)
(error y)
(print "Woof!"))
(bark (* 2 x))
(bark (* 3 x)))
(defn pupper []
(bork 3)
1)
(do (pupper) 1)