Fixed frame corruption
This commit is contained in:
parent
7e643d7378
commit
dddae2ddcc
1 changed files with 3 additions and 3 deletions
|
|
@ -1201,19 +1201,19 @@ else:
|
||||||
proc len(x: JSObject): int =
|
proc len(x: JSObject): int =
|
||||||
assert x.getVarType == JArray
|
assert x.getVarType == JArray
|
||||||
asm """
|
asm """
|
||||||
return `x`.length;
|
`result` = `x`.length;
|
||||||
"""
|
"""
|
||||||
|
|
||||||
proc `[]`(x: JSObject, y: string): JSObject =
|
proc `[]`(x: JSObject, y: string): JSObject =
|
||||||
assert x.getVarType == JObject
|
assert x.getVarType == JObject
|
||||||
asm """
|
asm """
|
||||||
return `x`[`y`];
|
`result` = `x`[`y`];
|
||||||
"""
|
"""
|
||||||
|
|
||||||
proc `[]`(x: JSObject, y: int): JSObject =
|
proc `[]`(x: JSObject, y: int): JSObject =
|
||||||
assert x.getVarType == JArray
|
assert x.getVarType == JArray
|
||||||
asm """
|
asm """
|
||||||
return `x`[`y`];
|
`result` = `x`[`y`];
|
||||||
"""
|
"""
|
||||||
|
|
||||||
proc convertObject(x: JSObject): JsonNode =
|
proc convertObject(x: JSObject): JsonNode =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue