fix #17264 [backport:1.4] (#17266)

* fix #17264
* fix vm
* fix js and add tests
This commit is contained in:
flywind 2021-03-05 21:39:46 +08:00 • committed by GitHub
commit 171b03c386
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 25 additions and 5 deletions

View file

@ -0,0 +1,16 @@
discard """
targets: "c cpp js"
"""
import std/[json, isolation]
proc main() =
var x: seq[Isolated[JsonNode]]
x.add isolate(newJString("1234"))
doAssert $x == """@[(value: "1234")]"""
static: main()
main()