mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-21 14:55:24 +00:00
* fix #14350, cstrings in JS init as null
This commit is contained in:
@@ -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("")
|
||||
|
||||
Reference in New Issue
Block a user