mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 08:54:53 +00:00
12 lines
290 B
Nim
12 lines
290 B
Nim
discard """
|
|
targets: "c cpp js"
|
|
joinable: false
|
|
"""
|
|
|
|
# refs https://github.com/nim-lang/Nim/pull/18247#issuecomment-860877161
|
|
|
|
let ex = newException(CatchableError, "test")
|
|
setCurrentException(ex)
|
|
doAssert getCurrentException().msg == ex.msg
|
|
doAssert getCurrentExceptionMsg() == ex.msg
|