allow catch in defMacro without :Dynamic

This commit is contained in:
2021-10-28 14:48:23 -04:00
parent 144175056b
commit a29f2934d9
6 changed files with 64 additions and 5 deletions

View File

@@ -44,4 +44,8 @@ class MacroTestCase extends Test {
function testSetMacroVar() {
_testSetMacroVar();
}
function testTryCatchWithoutDynamic () {
_testTryCatchWithoutDynamic();
}
}

View File

@@ -90,3 +90,9 @@
(function _testIfLetDisabled []
(_testIfLetDisabledMacro))
(defMacro _testTryCatchWithoutDynamicMacro []
(try (throw "intended") (catch [e] (ReaderExp.StrExp e))))
(function _testTryCatchWithoutDynamic []
(Assert.equals "intended" (_testTryCatchWithoutDynamicMacro)))