mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-04 14:38:38 +00:00
Deploy to GitHub pages
This commit is contained in:
12
nimcache/runnableExamples/jsffi_examples_2.nim
Normal file
12
nimcache/runnableExamples/jsffi_examples_2.nim
Normal file
@@ -0,0 +1,12 @@
|
||||
#[
|
||||
autogenerated by docgen
|
||||
loc: /home/runner/work/Nim/Nim/lib/js/jsffi.nim(224, 3)
|
||||
rdoccmd:
|
||||
]#
|
||||
import std/assertions
|
||||
import "/home/runner/work/Nim/Nim/lib/js/jsffi.nim"
|
||||
{.line: ("/home/runner/work/Nim/Nim/lib/js/jsffi.nim", 224, 3).}:
|
||||
let obj = newJsObject()
|
||||
obj.a = 20
|
||||
assert obj.a.to(int) == 20
|
||||
|
||||
Reference in New Issue
Block a user