diff options
author | hlaaftana <10591326+hlaaftana@users.noreply.github.com> | 2020-05-15 11:07:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-15 10:07:30 +0200 |
commit | 80c360fceb367e8b39dd8534313001e5cef4fa7f (patch) | |
tree | d93698a45b9f82b16bf5f05aef8112373ff46d9f /tests/system | |
parent | 278b4582f5c7cc3471bccc4ba587030edf7a50e2 (diff) | |
download | Nim-80c360fceb367e8b39dd8534313001e5cef4fa7f.tar.gz |
fix #14350, cstrings in JS init as null (#14355)
* fix #14350, cstrings in JS init as null
Diffstat (limited to 'tests/system')
-rw-r--r-- | tests/system/tdollars.nim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/system/tdollars.nim b/tests/system/tdollars.nim index 478a11b94..6ddec911f 100644 --- a/tests/system/tdollars.nim +++ b/tests/system/tdollars.nim @@ -70,3 +70,10 @@ block: # `$`(SomeInteger) testType uint64 testType int64 testType BiggestInt + +block: # #14350 for JS + var cstr: cstring + doAssert cstr == cstring(nil) + doAssert cstr == nil + doAssert cstr.isNil + doAssert cstr != cstring("") |