[nodejs backend] paramStr, paramCount (#17082)

This commit is contained in:
flywind 2021-02-18 01:26:50 -06:00 • committed by GitHub
commit 301d784256
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 44 additions and 9 deletions

11
tests/stdlib/tcmdline.nim Normal file
View file

@ -0,0 +1,11 @@
discard """
targets: "c js"
joinable: false
"""
import std/os
var params = paramCount()
doAssert params == 0
doAssert paramStr(0).len > 0
doAssert commandLineParams().len == 0