Fixed frame corruption

This commit is contained in:
Yuriy Glukhov
2016-08-27 19:34:31 +03:00
parent 7e643d7378
commit dddae2ddcc

View File

@@ -1201,19 +1201,19 @@ else:
proc len(x: JSObject): int =
assert x.getVarType == JArray
asm """
return `x`.length;
`result` = `x`.length;
"""
proc `[]`(x: JSObject, y: string): JSObject =
assert x.getVarType == JObject
asm """
return `x`[`y`];
`result` = `x`[`y`];
"""
proc `[]`(x: JSObject, y: int): JSObject =
assert x.getVarType == JArray
asm """
return `x`[`y`];
`result` = `x`[`y`];
"""
proc convertObject(x: JSObject): JsonNode =