small bugfix for lambdalifting; preparations for a better testing framework
This commit is contained in:
parent
a4b1ca3306
commit
9257c29ffd
5 changed files with 82 additions and 42 deletions
|
|
@ -636,7 +636,7 @@ proc `[]`*(node: PJsonNode, name: String): PJsonNode =
|
|||
return item
|
||||
return nil
|
||||
|
||||
proc `[]`*(node: PJsonNode, index: Int): PJsonNode {.raises: [EInvalidIndex].} =
|
||||
proc `[]`*(node: PJsonNode, index: Int): PJsonNode =
|
||||
## Gets the node at `index` in an Array.
|
||||
assert(node.kind == JArray)
|
||||
return node.elems[index]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue