The function sciter.NullValue() currently creates undefined instead of null, because it sets value properties before initializing the value. Apparently Value.init() overrides field t with default values.
To verify the bug and the fix, try: println(sciter.NullValue().IsNull(), sciter.NullValue().IsUndefined()). Returns false true before and true false after fixed.
The function
sciter.NullValue()
currently createsundefined
instead ofnull
, because it sets value properties before initializing the value. ApparentlyValue.init()
overrides fieldt
with default values.To verify the bug and the fix, try:
println(sciter.NullValue().IsNull(), sciter.NullValue().IsUndefined())
. Returnsfalse true
before andtrue false
after fixed.