teach opcLdObj about nkExprColonExpr
This commit is contained in:
parent
1793a0b5ce
commit
eebe0035b5
3 changed files with 73 additions and 19 deletions
|
|
@ -425,7 +425,9 @@ proc rawExecute(c: PCtx, start: int, tos: PStackFrame): TFullReg =
|
|||
decodeBC(rkNode)
|
||||
let src = regs[rb].node
|
||||
if src.kind notin {nkEmpty..nkNilLit}:
|
||||
regs[ra].node = src.sons[rc]
|
||||
let n = src.sons[rc]
|
||||
regs[ra].node = if n.kind == nkExprColonExpr: n[1]
|
||||
else: n
|
||||
else:
|
||||
stackTrace(c, tos, pc, errIndexOutOfBounds)
|
||||
of opcWrObj:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue