small bugfix for lambdalifting; preparations for a better testing framework

This commit is contained in:
Araq
2013-01-19 02:09:08 +01:00
parent a4b1ca3306
commit 9257c29ffd
5 changed files with 82 additions and 42 deletions

View File

@@ -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]