add(a, b)
buggy in RT js or in VM when a or b is a nil cstring
#16686
Labels
add(a, b)
buggy in RT js or in VM when a or b is a nil cstring
#16686
Example 1
Current Output
vm js:
("ba",)
("ba",)
("",)
("abab",)
("",) # this is a separate issue, fixed in #16026
rt js:
("nullba",)
("banull",)
("",)
("abab",)
(nil,)
Expected Output
vm js:
("ba",)
("ba",)
("",)
("abab",)
(nil,)
rt js:
("ba",)
("ba",)
("",)
("abab",)
(nil,)
Example 2
prints:
("nullba",)
/Users/timothee/git_clone/nim/timn/build/nimcache/t11680.js:376
x_33556413[x_33556413_Idx].length += y_33556414.length;
(2 bugs here)
Example 3: js vm
uncomment
static: main()
in Example 2gives CT error:
Example 4: vm (eg c vm)
VM:
Error: index out of bounds, the container is empty
while y[i] != '\0':
Additional Information
1.5.1 be6e891
The text was updated successfully, but these errors were encountered: