make JS tests green

This commit is contained in:
Andreas Rumpf 2018-08-13 12:51:31 +02:00
commit 9f31096870
3 changed files with 3 additions and 3 deletions

View file

@ -64,7 +64,7 @@ block:
proc test(): bool =
let obj = newJsObject()
obj.`?!$` = proc(x, y, z: int, t: cstring): cstring = t & $(x + y + z)
obj.`?!$`(1, 2, 3, "Result is: ").to(cstring) == "Result is: 6"
obj.`?!$`(1, 2, 3, "Result is: ").to(cstring) == cstring"Result is: 6"
echo test()
# Test JsObject []()