Skip to content

Commit fd06e92

Browse files
committed
workaround janet bug in (try) macro
1 parent d82c132 commit fd06e92

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/jlsl/types.janet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
(put functions-called function (table/proto-flatten scope))
113113
(def args-and-params (try
114114
(zip args (function/param-sigs function))
115-
([_ _]
115+
([_]
116116
(errorf "wrong number of arguments to function %s, expected %q, got %q"
117117
(/name function)
118118
(length (function/param-sigs function))

tests/suite.janet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ img {
819819

820820
(def old-file-name (try
821821
(slice ($<_ git show HEAD:tests/ ^ ,ref-path >[stderr :null]) 3)
822-
([_ _] nil)))
822+
([_] nil)))
823823
($ ln -fs (string "../" new-file-name) ,ref-path)
824824

825825
(def changed? (and old-file-name (not= old-file-name new-file-name)))

0 commit comments

Comments
 (0)