1
0
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:
Calvin Rose
2018-06-29 19:44:33 -04:00
parent 11ced5b582
commit 1ea9ebf04f
3 changed files with 37 additions and 28 deletions

View File

@@ -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)))