pull/2656/head
Alexander Medvednikov 2019-11-05 18:18:10 +03:00
parent 425c9ce401
commit b2f8944b1f
1 changed files with 3 additions and 1 deletions

View File

@ -3385,7 +3385,9 @@ fn (p mut Parser) for_st() {
}) })
// TODO don't generate if it's not used. // TODO don't generate if it's not used.
// Otherwise it's a C warning + perf. // Otherwise it's a C warning + perf.
p.genln('bool last = $i == $tmp . len - 1;') if !p.is_js {
p.genln('bool last = $i == $tmp . len - 1;')
}
} }
else if is_str { else if is_str {
typ = 'byte' typ = 'byte'