diff --git a/compiler/jsgen.v b/compiler/jsgen.v index 3c7d9ef725..7e547a9b5d 100644 --- a/compiler/jsgen.v +++ b/compiler/jsgen.v @@ -109,7 +109,7 @@ string res = tos2(""); 'root, "$name"))' } else { - dec += ' $dec_name(js_get(root, "$name"), & (res->$name))' + dec += ' $dec_name(js_get(root, "$name"), & (res->$field.name))' } dec += ';\n' }