vnode caching works in the toy example
This commit is contained in:
parent
fe6e4efc29
commit
8da1ac07c0
5 changed files with 76 additions and 8 deletions
11
jdict.nim
Normal file
11
jdict.nim
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
|
||||
type
|
||||
JDict*[K, V] = ref object
|
||||
|
||||
proc `[]`*[K, V](d: JDict[K, V], k: K): V {.importcpp: "#[#]".}
|
||||
proc `[]=`*[K, V](d: JDict[K, V], k: K, v: V) {.importcpp: "#[#] = #".}
|
||||
|
||||
proc newJDict*[K, V](): JDict[K, V] {.importcpp: "{@}".}
|
||||
|
||||
proc contains*[K, V](d: JDict[K, V], k: K): bool {.importcpp: "#.hasOwnProperty(#)".}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue