Deploy to GitHub pages
This commit is contained in:
commit
2ef2c469d1
850 changed files with 332608 additions and 0 deletions
18
nimcache/runnableExamples/jsutils_examples_3.nim
Normal file
18
nimcache/runnableExamples/jsutils_examples_3.nim
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#[
|
||||
autogenerated by docgen
|
||||
loc: /home/runner/work/Nim/Nim/lib/std/private/jsutils.nim(49, 5)
|
||||
rdoccmd:
|
||||
]#
|
||||
import "/home/runner/work/Nim/Nim/lib/std/private/jsutils.nim"
|
||||
{.line: ("/home/runner/work/Nim/Nim/lib/std/private/jsutils.nim", 49, 5).}:
|
||||
import std/[jsffi, jsbigints]
|
||||
type A = ref object
|
||||
assert 1.toJs.getProtoName == "[object Number]"
|
||||
assert "a".toJs.getProtoName == "[object String]"
|
||||
assert big"1".toJs.getProtoName == "[object BigInt]"
|
||||
assert false.toJs.getProtoName == "[object Boolean]"
|
||||
assert (a: 1).toJs.getProtoName == "[object Object]"
|
||||
assert A.default.toJs.getProtoName == "[object Null]"
|
||||
assert [1].toJs.getProtoName == "[object Int32Array]" # implementation defined
|
||||
assert @[1].toJs.getProtoName == "[object Array]" # ditto
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue