Closed telppa closed 1 year ago
This appears to be a bug with AHK, please file a report over in the bugs forum:
js =
(
<script>
function test(Object) {
var outer = Object();
var inner = Object();
inner["TEST"] = 1;
outer["test"] = inner;
return outer;
}
</script>
)
doc := ComObjCreate("htmlfile")
doc.Write(js)
doc.Close()
outer := doc.parentWindow.test(Func("Object"))
outer._NewEnum().Next(k1, inner)
inner._NewEnum().Next(k2, v2)
MsgBox, {"%k1%": {"%k2%": "%v2%"}} ; shows {"TEST": {"TEST": "1"}}
This appears to be a bug with AHK, please file a report over in the bugs forum:
js = ( <script> function test(Object) { var outer = Object(); var inner = Object(); inner["TEST"] = 1; outer["test"] = inner; return outer; } </script> ) doc := ComObjCreate("htmlfile") doc.Write(js) doc.Close() outer := doc.parentWindow.test(Func("Object")) outer._NewEnum().Next(k1, inner) inner._NewEnum().Next(k2, v2) MsgBox, {"%k1%": {"%k2%": "%v2%"}} ; shows {"TEST": {"TEST": "1"}}
I didn't understand the code, maybe you can report bugs in the forum?
Being tracked at https://www.autohotkey.com/boards/viewtopic.php?f=14&t=100622
This has been fixed in the AHK interpreter.