reuse jsffi in json module (#17165)

* remove unnecessary when statement

* remove outdated codes

* reuse jsffi

* move js json coverage
This commit is contained in:
flywind 2021-03-05 02:37:12 +08:00 • committed by GitHub
commit 81889fb84c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 23 deletions

View file

@ -1,9 +1,10 @@
discard """
targets: "c js"
output:'''@["3", "2", "1"]
'''
"""
#12928,10456
import sequtils, algorithm, json
import std/[sequtils, algorithm, json]
proc test() =
try: