mirror of
https://github.com/janet-lang/janet
synced 2026-09-04 00:28:52 +00:00
Fix sourcemapping bug with closures, add some library functions
to boot.dst
This commit is contained in:
+7
-6
@@ -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