allow catch in defMacro without :Dynamic
This commit is contained in:
@@ -44,4 +44,8 @@ class MacroTestCase extends Test {
|
||||
function testSetMacroVar() {
|
||||
_testSetMacroVar();
|
||||
}
|
||||
|
||||
function testTryCatchWithoutDynamic () {
|
||||
_testTryCatchWithoutDynamic();
|
||||
}
|
||||
}
|
||||
|
@@ -90,3 +90,9 @@
|
||||
|
||||
(function _testIfLetDisabled []
|
||||
(_testIfLetDisabledMacro))
|
||||
|
||||
(defMacro _testTryCatchWithoutDynamicMacro []
|
||||
(try (throw "intended") (catch [e] (ReaderExp.StrExp e))))
|
||||
|
||||
(function _testTryCatchWithoutDynamic []
|
||||
(Assert.equals "intended" (_testTryCatchWithoutDynamicMacro)))
|
Reference in New Issue
Block a user