mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-18 23:11:36 +00:00
This reverts commit 0adb47aa15.
This commit is contained in:
@@ -135,9 +135,8 @@ proc pushCurrentException(e: sink(ref Exception)) {.compilerRtl, inl.} =
|
||||
#showErrorMessage2 "A"
|
||||
|
||||
proc popCurrentException {.compilerRtl, inl.} =
|
||||
if currException != nil:
|
||||
currException = currException.up
|
||||
#showErrorMessage2 "B"
|
||||
currException = currException.up
|
||||
#showErrorMessage2 "B"
|
||||
|
||||
proc popCurrentExceptionEx(id: uint) {.compilerRtl.} =
|
||||
discard "only for bootstrapping compatbility"
|
||||
|
||||
@@ -6,10 +6,3 @@ let ex = newException(CatchableError, "test")
|
||||
setCurrentException(ex)
|
||||
doAssert getCurrentException().msg == ex.msg
|
||||
doAssert getCurrentExceptionMsg() == ex.msg
|
||||
setCurrentException(nil)
|
||||
|
||||
try:
|
||||
raise newException(CatchableError, "test2")
|
||||
except:
|
||||
setCurrentException(nil)
|
||||
doAssert getCurrentException() == nil
|
||||
|
||||
Reference in New Issue
Block a user