From 421b6ce4acccc4d119468f92f113239c1a6d8d34 Mon Sep 17 00:00:00 2001 From: teggot Date: Sat, 24 Aug 2019 00:12:00 +0300 Subject: [PATCH] Fix typo --- compiler/jsgen.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' }