* [std/re] make interface consistent * tiny * revert * close #18129 add setCurrentException * changelog entry
This commit is contained in:
parent
c0e8199acc
commit
c2e3dc0ed1
3 changed files with 12 additions and 1 deletions
8
tests/exception/tsetexceptions.nim
Normal file
8
tests/exception/tsetexceptions.nim
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
discard """
|
||||
targets: "c cpp js"
|
||||
"""
|
||||
|
||||
let ex = newException(CatchableError, "test")
|
||||
setCurrentException(ex)
|
||||
doAssert getCurrentException().msg == ex.msg
|
||||
doAssert getCurrentExceptionMsg() == ex.msg
|
||||
Loading…
Add table
Add a link
Reference in a new issue