mirror of
https://github.com/janet-lang/janet
synced 2025-10-09 13:02:28 +00:00
Fix sourcemapping bug with closures, add some library functions
to boot.dst
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
# 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]
|
||||
|
||||
(defn bark [x]
|
||||
(print "Woof!")
|
||||
(print x)
|
||||
(error x)
|
||||
(print "Woof!"))
|
||||
|
||||
(bark (* 2 x))
|
||||
(bark (* 3 x)))
|
||||
|
||||
|
Reference in New Issue
Block a user