Skip to content

Commit 7738451

Browse files
committed
temporary workaround for janet try macro hygiene bug
This code should work regardless of the Janet version used, and we can back it out after janet-lang/janet#1659 lands upstream.
1 parent fd06e92 commit 7738451

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)