diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2024-06-06 17:51:41 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-06 11:51:41 +0200 |
commit | 8f5ae28fab113c425d22e5abc230f456fa627744 (patch) | |
tree | f3a82b83cc0460d500b73530a4707dddfa5ded24 /tests/stdlib | |
parent | 69d0b73d667c4be9383f29cda3f70e411995d9af (diff) | |
download | Nim-8f5ae28fab113c425d22e5abc230f456fa627744.tar.gz |
fixes #22672; Destructor not called for result when exception is thrown (#23267)
fixes #22672
Diffstat (limited to 'tests/stdlib')
-rw-r--r-- | tests/stdlib/tjson.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/stdlib/tjson.nim b/tests/stdlib/tjson.nim index 691bedeaa..f0e8c8bb7 100644 --- a/tests/stdlib/tjson.nim +++ b/tests/stdlib/tjson.nim @@ -1,5 +1,5 @@ discard """ - matrix: "--mm:refc; --backend:cpp --mm:refc; --backend:js --jsbigint64:off; --backend:js --jsbigint64:on" + matrix: "; --backend:cpp; --backend:js --jsbigint64:off; --backend:js --jsbigint64:on" """ @@ -51,7 +51,7 @@ for i in 0 .. 10000: except: discard # memory diff should less than 4M -doAssert(abs(getOccupiedMem() - startMemory) < 4 * 1024 * 1024) # todo fixme doesn;t work for ORC +doAssert(abs(getOccupiedMem() - startMemory) < 4 * 1024 * 1024) # test `$` |