mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-02 05:29:01 +00:00
Deploy to GitHub pages
This commit is contained in:
14
nimcache/runnableExamples/jsutils_examples_1.nim
Normal file
14
nimcache/runnableExamples/jsutils_examples_1.nim
Normal file
@@ -0,0 +1,14 @@
|
||||
#[
|
||||
autogenerated by docgen
|
||||
loc: /home/runner/work/Nim/Nim/lib/std/private/jsutils.nim(27, 5)
|
||||
rdoccmd:
|
||||
]#
|
||||
import std/assertions
|
||||
import "/home/runner/work/Nim/Nim/lib/std/private/jsutils.nim"
|
||||
{.line: ("/home/runner/work/Nim/Nim/lib/std/private/jsutils.nim", 27, 5).}:
|
||||
import std/[jsffi, jsbigints]
|
||||
assert jsTypeOf(1.toJs) == "number"
|
||||
assert jsTypeOf(false.toJs) == "boolean"
|
||||
assert [1].toJs.jsTypeOf == "object" # note the difference with `getProtoName`
|
||||
assert big"1".toJs.jsTypeOf == "bigint"
|
||||
|
||||
Reference in New Issue
Block a user