diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2020-05-12 15:46:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-12 15:46:24 +0200 |
commit | 06dfd316127fb2ec05ff69942abd1e279156ac5c (patch) | |
tree | 4bb6a8ac4ea04ed2ff5bb34c1fe9ff47b43c2ce1 /lib/system.nim | |
parent | 4277ab470a20f429605fbf238e485ea24b01706a (diff) | |
download | Nim-06dfd316127fb2ec05ff69942abd1e279156ac5c.tar.gz |
fixes #13881
* fixes #13881 * documented changed requirements for system.onThreadDestruction * destructors.rst: update the documentation
Diffstat (limited to 'lib/system.nim')
-rw-r--r-- | lib/system.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/system.nim b/lib/system.nim index 8878277b7..8ce79aa2f 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -692,7 +692,7 @@ proc len*(x: string): int {.magic: "LengthStr", noSideEffect.} proc len*(x: cstring): int {.magic: "LengthStr", noSideEffect.} ## Returns the length of a compatible string. This is sometimes ## an O(n) operation. - ## + ## ## **Note:** On the JS backend this currently counts UTF-16 code points ## instead of bytes at runtime (not at compile time). For now, if you ## need the byte length of the UTF-8 encoding, convert to string with @@ -2093,7 +2093,7 @@ when not defined(js): when hasAlloc: when not defined(gcRegions) and not usesDestructors: - proc initGC() {.gcsafe.} + proc initGC() {.gcsafe, raises: [].} proc initStackBottom() {.inline, compilerproc.} = # WARNING: This is very fragile! An array size of 8 does not work on my |