mirror of
https://github.com/nim-lang/Nim.git
synced 2026-09-02 03:43:41 +00:00
* [std/re] make interface consistent * tiny * revert * close #18129 add setCurrentException * changelog entry
9 lines
198 B
Nim
9 lines
198 B
Nim
discard """
|
|
targets: "c cpp js"
|
|
"""
|
|
|
|
let ex = newException(CatchableError, "test")
|
|
setCurrentException(ex)
|
|
doAssert getCurrentException().msg == ex.msg
|
|
doAssert getCurrentExceptionMsg() == ex.msg
|